@realsee/dnalogel 2.6.7-dev.0 → 2.6.7-dev.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 (274) hide show
  1. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +2 -2
  2. package/dist/PanoTagPlugin/controller/index.d.ts +1 -0
  3. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  4. package/dist/index.cjs.js +14 -14
  5. package/dist/index.js +120 -111
  6. package/dist/index.umd.js +12 -12
  7. package/docs/assets/search.js +1 -1
  8. package/docs/classes/CSS3DRender.html +31 -31
  9. package/docs/classes/CruisePluginController.html +24 -24
  10. package/docs/classes/Magnifier.html +20 -20
  11. package/docs/classes/ModelRoomLabelController.html +11 -11
  12. package/docs/classes/Object3DHelperController.html +24 -24
  13. package/docs/classes/PaintBrush.html +15 -15
  14. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  15. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  16. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  17. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  18. package/docs/classes/PanoTagPluginController.html +118 -44
  19. package/docs/classes/Util.BetterTween.html +8 -8
  20. package/docs/classes/Util.FivePointSelector.html +12 -12
  21. package/docs/classes/Util.Interval.html +12 -12
  22. package/docs/classes/Util.Magnifier.html +17 -17
  23. package/docs/classes/Util.PointDomHelper.html +11 -11
  24. package/docs/classes/Util.PointHelper.html +11 -11
  25. package/docs/classes/Util.Rectangle.html +13 -13
  26. package/docs/enums/CameraMovementEffect.html +7 -7
  27. package/docs/enums/ContentType.html +18 -18
  28. package/docs/enums/DIRECTION.html +9 -9
  29. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  30. package/docs/enums/DimensionType.html +7 -7
  31. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  32. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  33. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  34. package/docs/enums/PointType.html +7 -7
  35. package/docs/enums/Rotation.html +8 -8
  36. package/docs/functions/CSS3DRenderPlugin.html +5 -5
  37. package/docs/functions/CameraMovementPlugin.html +5 -5
  38. package/docs/functions/CruisePlugin.html +5 -5
  39. package/docs/functions/GuideLinePlugin.html +5 -5
  40. package/docs/functions/ItemLabelPlugin.html +5 -5
  41. package/docs/functions/MapviewFloorplanPlugin.html +5 -5
  42. package/docs/functions/ModelChassisCompassPlugin.html +5 -5
  43. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
  44. package/docs/functions/ModelFloorplanPlugin.html +5 -5
  45. package/docs/functions/ModelItemLabelPlugin.html +5 -5
  46. package/docs/functions/ModelRoomLabelPlugin.html +5 -5
  47. package/docs/functions/ModelTVVideoPlugin.html +5 -5
  48. package/docs/functions/ModelViewPlugin.html +5 -5
  49. package/docs/functions/Object3DHelperPlugin.html +5 -5
  50. package/docs/functions/PanoCompassPlugin.html +5 -5
  51. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
  52. package/docs/functions/PanoDoorLabelPlugin.html +5 -5
  53. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
  54. package/docs/functions/PanoMeasurePlugin.html +5 -5
  55. package/docs/functions/PanoRulerPlugin.html +5 -5
  56. package/docs/functions/PanoRulerProPlugin.html +5 -5
  57. package/docs/functions/PanoSpatialTagPlugin.html +5 -5
  58. package/docs/functions/PanoTagPlugin.html +5 -5
  59. package/docs/functions/TopviewFloorplanPlugin.html +5 -5
  60. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  61. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  62. package/docs/functions/Util.getFrameTime.html +5 -5
  63. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  64. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  65. package/docs/functions/Util.isNil.html +5 -5
  66. package/docs/functions/Util.nextFrame.html +5 -5
  67. package/docs/functions/Util.notNil.html +5 -5
  68. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  69. package/docs/functions/Util.tweenProgress.html +5 -5
  70. package/docs/functions/pluginFlag.html +5 -5
  71. package/docs/index.html +4 -4
  72. package/docs/interfaces/AddTagConfig.html +6 -6
  73. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  74. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  75. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  76. package/docs/interfaces/EventMap.html +15 -15
  77. package/docs/interfaces/FloorplanBounding.html +8 -8
  78. package/docs/interfaces/FloorplanData.html +10 -10
  79. package/docs/interfaces/FloorplanEntrance.html +11 -11
  80. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  81. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  82. package/docs/interfaces/FloorplanFloorData.html +9 -9
  83. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  84. package/docs/interfaces/FloorplanObserver.html +9 -9
  85. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  86. package/docs/interfaces/FloorplanPosition.html +7 -7
  87. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  88. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  89. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  90. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  91. package/docs/interfaces/FloorplanServerData.html +7 -7
  92. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  93. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  94. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  95. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  96. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  97. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  98. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  99. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  100. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  101. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  102. package/docs/interfaces/HelperOffset.html +8 -8
  103. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  104. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  105. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  106. package/docs/interfaces/MinMax.html +7 -7
  107. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  108. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  109. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  110. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  111. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  112. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  113. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  114. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  115. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  116. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  117. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  118. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  119. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  120. package/docs/interfaces/Object3DHelperState.html +8 -8
  121. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  122. package/docs/interfaces/PaintBrushAction.html +12 -12
  123. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  124. package/docs/interfaces/PaintBrushState.html +10 -10
  125. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  126. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  127. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  128. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  129. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  130. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  131. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  132. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  133. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  134. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  135. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  136. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  137. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  138. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  139. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  140. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  141. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  142. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  143. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  144. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  145. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  146. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  147. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  148. package/docs/interfaces/Point.html +8 -8
  149. package/docs/interfaces/Room.html +9 -9
  150. package/docs/interfaces/RoomInfo.html +7 -7
  151. package/docs/interfaces/RoomLabel.html +14 -14
  152. package/docs/interfaces/RoomRules.html +5 -5
  153. package/docs/interfaces/Rooms.html +5 -5
  154. package/docs/interfaces/Scissor.html +9 -9
  155. package/docs/interfaces/State.html +8 -8
  156. package/docs/interfaces/TagCache.html +12 -12
  157. package/docs/interfaces/TagConfig.html +11 -11
  158. package/docs/interfaces/TagIconUrl.html +9 -9
  159. package/docs/interfaces/Tags.html +9 -9
  160. package/docs/interfaces/TemporaryState.html +6 -6
  161. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  162. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  163. package/docs/modules/Util.html +5 -5
  164. package/docs/modules.html +4 -4
  165. package/docs/types/ArrayPosition.html +5 -5
  166. package/docs/types/AudioAppearance.html +5 -5
  167. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  168. package/docs/types/CSS3DRenderExportType.html +5 -5
  169. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  170. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  171. package/docs/types/ClassFunctionParameters.html +5 -5
  172. package/docs/types/Color.html +5 -5
  173. package/docs/types/ContentTypeConfigKey.html +5 -5
  174. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  175. package/docs/types/ContentTypeMap.html +5 -5
  176. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  177. package/docs/types/Create3DElementReturnType.html +5 -5
  178. package/docs/types/CruisePluginExportType.html +5 -5
  179. package/docs/types/Direction-1.html +5 -5
  180. package/docs/types/Direction4.html +5 -5
  181. package/docs/types/FloorplanRuleLabels.html +5 -5
  182. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  183. package/docs/types/GuideLinePluginExportType.html +5 -5
  184. package/docs/types/HelperEventMap.html +5 -5
  185. package/docs/types/LoadTagConfig.html +5 -5
  186. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  187. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  188. package/docs/types/MediaData.html +5 -5
  189. package/docs/types/MediaStore.html +5 -5
  190. package/docs/types/ModelElement.html +5 -5
  191. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  192. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  193. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  194. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  195. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  196. package/docs/types/MoveArgs.html +5 -5
  197. package/docs/types/MoveOpts.html +5 -5
  198. package/docs/types/Object3DHelperEventMap.html +5 -5
  199. package/docs/types/ObjectFit.html +5 -5
  200. package/docs/types/PaintBrushEventMap.html +5 -5
  201. package/docs/types/PanoCompassPluginData.html +5 -5
  202. package/docs/types/PanoCompassPluginExportType.html +5 -5
  203. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  204. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  205. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  206. package/docs/types/PanoIndex.html +5 -5
  207. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  208. package/docs/types/PanoMeasureReturnType.html +5 -5
  209. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  210. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  211. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  212. package/docs/types/PlaneTag.html +5 -5
  213. package/docs/types/PlaneTagElement.html +5 -5
  214. package/docs/types/Point2DElement.html +5 -5
  215. package/docs/types/Point2DTag.html +5 -5
  216. package/docs/types/Point3DElement.html +5 -5
  217. package/docs/types/Point3DTag.html +5 -5
  218. package/docs/types/PointTag.html +5 -5
  219. package/docs/types/PointTagElement.html +5 -5
  220. package/docs/types/Position.html +5 -5
  221. package/docs/types/RotateArgs.html +5 -5
  222. package/docs/types/RotateOpts.html +5 -5
  223. package/docs/types/RuleLabelsKey.html +5 -5
  224. package/docs/types/RuleLabelsValue.html +5 -5
  225. package/docs/types/StickType.html +5 -5
  226. package/docs/types/Tag.html +5 -5
  227. package/docs/types/Tag2D.html +5 -5
  228. package/docs/types/Tag3D.html +5 -5
  229. package/docs/types/TagContentType.html +5 -5
  230. package/docs/types/TagDimensionType.html +5 -5
  231. package/docs/types/TagElement.html +5 -5
  232. package/docs/types/TagEvents.html +5 -5
  233. package/docs/types/TagGLTFObject.html +5 -5
  234. package/docs/types/TagHooks.html +5 -5
  235. package/docs/types/TagIconSize.html +5 -5
  236. package/docs/types/TagId.html +5 -5
  237. package/docs/types/TagPointType.html +5 -5
  238. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  239. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  240. package/docs/types/WorkCode.html +5 -5
  241. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  242. package/docs/variables/PLUGIN.html +5 -5
  243. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  244. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  245. package/docs/variables/VERSION.html +5 -5
  246. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  247. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  248. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  249. package/libs/CSS3DRenderPlugin/CSS3DRender.js +60 -56
  250. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +2 -2
  251. package/libs/PanoTagPlugin/controller/TagComputer.js +80 -76
  252. package/libs/PanoTagPlugin/controller/index.d.ts +1 -0
  253. package/libs/PanoTagPlugin/controller/index.js +53 -52
  254. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -1
  255. package/package.json +1 -1
  256. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  257. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  258. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  259. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  260. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  261. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  262. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  263. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  264. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  265. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  266. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  267. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  268. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  269. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  270. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  271. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  272. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  273. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  274. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
@@ -1,31 +1,31 @@
1
- var M = Object.defineProperty, U = Object.defineProperties;
2
- var B = Object.getOwnPropertyDescriptors;
1
+ var j = Object.defineProperty, B = Object.defineProperties;
2
+ var U = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
4
  var R = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
5
- var T = (g, d, e) => d in g ? M(g, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[d] = e, C = (g, d) => {
5
+ var T = (g, d, e) => d in g ? j(g, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : g[d] = e, C = (g, d) => {
6
6
  for (var e in d || (d = {}))
7
7
  R.call(d, e) && T(g, e, d[e]);
8
8
  if (P)
9
9
  for (var e of P(d))
10
10
  w.call(d, e) && T(g, e, d[e]);
11
11
  return g;
12
- }, I = (g, d) => U(g, B(d));
12
+ }, I = (g, d) => B(g, U(d));
13
13
  var y = (g, d, e) => (T(g, typeof d != "symbol" ? d + "" : d, e), e);
14
14
  import x from "object-assign-deep";
15
15
  import * as k from "three";
16
- import { DefaultConfig as $ } from "../tag.config.js";
17
- import { isMediaModelTag as m, is3DTag as A } from "../utils/tag/tagCheck.js";
16
+ import { DefaultConfig as V } from "../tag.config.js";
17
+ import { isMediaModelTag as m, is3DTag as $ } from "../utils/tag/tagCheck.js";
18
18
  import { anyPositionToVector3 as E } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
19
- import { planeNormal as V } from "../utils/planeNormal.js";
20
- import { getTagPosition as D, tagPosition as j } from "../utils/tagPosition.js";
19
+ import { planeNormal as A } from "../utils/planeNormal.js";
20
+ import { getTagPosition as D, tagPosition as M } from "../utils/tagPosition.js";
21
21
  import { checkRange as b } from "../utils/checkRange.js";
22
- import { TagCacheController as S } from "./TagCacheController.js";
22
+ import { TagCacheController as F } from "./TagCacheController.js";
23
23
  import "hammerjs";
24
24
  import "@realsee/five";
25
25
  import "@tweenjs/tween.js";
26
26
  import "../../CSS3DRenderPlugin/CSS3DRender.js";
27
27
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
28
- import { notNil as _ } from "../../shared-utils/isNil.js";
28
+ import { notNil as S } from "../../shared-utils/isNil.js";
29
29
  import "../../shared-utils/animationFrame/BetterTween.js";
30
30
  import "@realsee/five/gltf-loader";
31
31
  import "../../CSS3DRenderPlugin/utils/centerPoint.js";
@@ -41,11 +41,11 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
41
41
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
42
42
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
43
43
  import "../../shared-utils/animationFrame/index.js";
44
- class he extends S {
44
+ class ve extends F {
45
45
  constructor(e) {
46
46
  super(e);
47
47
  y(this, "tags", []);
48
- y(this, "config", $);
48
+ y(this, "config", V);
49
49
  y(this, "raycaster", new k.Raycaster());
50
50
  }
51
51
  get isPanorama() {
@@ -70,7 +70,7 @@ class he extends S {
70
70
  if (i.visible !== void 0)
71
71
  return i.visible;
72
72
  {
73
- const r = (() => {
73
+ const a = (() => {
74
74
  var c, u, f;
75
75
  const s = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, l = this.getDistance(e);
76
76
  if (typeof s == "function")
@@ -102,23 +102,31 @@ class he extends S {
102
102
  value: !1,
103
103
  reason: `intersectRaycaster check failed: fivePanoIndex is ${o}`
104
104
  };
105
- const a = this.getRaycasterFromPanoIndex(e, o), p = this.getTagEnableByIntersect(e, a);
105
+ const r = this.getRaycasterFromPanoIndex(e, o), p = this.getTagEnableByIntersect(e, r);
106
106
  if (p.value === !1)
107
107
  return p;
108
108
  }
109
- if (s.angleRange && A(e)) {
110
- const a = this.getAngle(e);
111
- if (b(a, s.angleRange) === !1)
112
- return { value: !1, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${s.angleRange}` };
109
+ if (s.angleRange && $(e)) {
110
+ const r = this.getAngle(e);
111
+ if (b(r, s.angleRange) === !1)
112
+ return { value: !1, reason: `angle is not in angleRange. angle: ${r}, angleRange: ${s.angleRange}` };
113
113
  }
114
114
  return {
115
115
  value: !0,
116
116
  reason: "all check passed"
117
117
  };
118
118
  })();
119
- return i.visible = r.value, i.__debug_visible_reason__ = r, i.visible;
119
+ return i.visible = a.value, i.__debug_visible_reason__ = a, i.visible;
120
120
  }
121
121
  }
122
+ getVisibelByFiveMode(e, t) {
123
+ var n;
124
+ const i = (n = this.getTagConfig(e).visibleConfig) != null ? n : {};
125
+ if (typeof i == "function")
126
+ return t === "Panorama";
127
+ const o = i == null ? void 0 : i.visibleFiveMode;
128
+ return o ? o.includes(t) : t === "Panorama";
129
+ }
122
130
  getModelMedialVisibleByPanoIndex(e) {
123
131
  const t = this.five.getCurrentState().panoIndex, i = this.getCache({ panoIndex: t, id: e.id });
124
132
  if (i.modelMedialVisible !== void 0)
@@ -136,7 +144,7 @@ class he extends S {
136
144
  const n = this.getTagConfig(e).unfoldedConfig;
137
145
  if (!n)
138
146
  return;
139
- const r = (() => {
147
+ const a = (() => {
140
148
  const l = this.getDistance(e);
141
149
  if (typeof n == "function")
142
150
  return n(this.five, { tag: e, distance: l });
@@ -147,14 +155,14 @@ class he extends S {
147
155
  if (n.unfoldDistance && b(l, n.unfoldDistance) === !1)
148
156
  return !1;
149
157
  })();
150
- o.unfolded = r;
158
+ o.unfolded = a;
151
159
  const s = this.getUnfoldedByCamera(e);
152
160
  return s !== void 0 ? s : o.unfolded;
153
161
  }
154
162
  }
155
163
  getUnfoldedByCamera(e) {
156
164
  return this.getVisibleByPanoIndex(e) ? (() => {
157
- var r;
165
+ var a;
158
166
  const o = this.getDistance(e), n = this.getTagConfig(e).unfoldedConfig;
159
167
  if (!!n) {
160
168
  if (typeof n == "function")
@@ -172,19 +180,19 @@ class he extends S {
172
180
  }
173
181
  if (n.autoUnfold.strategy === "MinimumDistance") {
174
182
  const c = this.filterPointTag().filter((f) => this.getVisibleByPanoIndex(f)).filter((f) => {
175
- const a = this.getTagProject(f);
176
- if (!a)
183
+ const r = this.getTagProject(f);
184
+ if (!r)
177
185
  return !1;
178
- const { x: p, y: h, z: v } = a;
179
- return !(Math.abs(v) > 1 || Math.abs(p) > 1 || Math.abs(h) > 1);
180
- }).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: a }) => {
181
- var p, h;
182
- return !(typeof a != "object" || a.keep || a.autoUnfold === !1 || ((p = a.autoUnfold) == null ? void 0 : p.enable) === !1 || ((h = a.autoUnfold) == null ? void 0 : h.strategy) !== "MinimumDistance");
183
- }).map((f) => I(C({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: a }) => {
184
- var p, h;
185
- return !(f === void 0 || typeof a != "object" || a.autoUnfold === !1 || ((p = a.autoUnfold) == null ? void 0 : p.enable) === !1 || ((h = a.autoUnfold) == null ? void 0 : h.strategy) !== "MinimumDistance" || a.autoUnfold.distance && b(f, a.autoUnfold.distance) === !1);
186
- }).sort((f, a) => f.distance - a.distance).findIndex((f) => f.id === e.id);
187
- if (c === -1 || c <= ((r = n.autoUnfold.maxNumber) != null ? r : 1) - 1 === !1)
186
+ const { x: p, y: v, z: h } = r;
187
+ return !(Math.abs(h) > 1 || Math.abs(p) > 1 || Math.abs(v) > 1);
188
+ }).map((f) => ({ tag: f, id: f.id, tagConfig: this.getTagConfig(f).unfoldedConfig })).filter(({ tag: f, tagConfig: r }) => {
189
+ var p, v;
190
+ return !(typeof r != "object" || r.keep || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance");
191
+ }).map((f) => I(C({}, f), { distance: this.getDistance(f.tag) })).filter(({ distance: f, tagConfig: r }) => {
192
+ var p, v;
193
+ return !(f === void 0 || typeof r != "object" || r.autoUnfold === !1 || ((p = r.autoUnfold) == null ? void 0 : p.enable) === !1 || ((v = r.autoUnfold) == null ? void 0 : v.strategy) !== "MinimumDistance" || r.autoUnfold.distance && b(f, r.autoUnfold.distance) === !1);
194
+ }).sort((f, r) => f.distance - r.distance).findIndex((f) => f.id === e.id);
195
+ if (c === -1 || c <= ((a = n.autoUnfold.maxNumber) != null ? a : 1) - 1 === !1)
188
196
  return !1;
189
197
  }
190
198
  return !0;
@@ -192,7 +200,7 @@ class he extends S {
192
200
  })() : void 0;
193
201
  }
194
202
  getDistance(e, t) {
195
- var n, r, s;
203
+ var n, a, s;
196
204
  const i = (n = this.five.panoIndex) != null ? n : t;
197
205
  if (i === void 0)
198
206
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
@@ -200,7 +208,7 @@ class he extends S {
200
208
  if (o.distance !== void 0)
201
209
  return o.distance;
202
210
  {
203
- const l = (s = (r = this.five.work) == null ? void 0 : r.observers[i]) == null ? void 0 : s.position;
211
+ const l = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
204
212
  if (l === void 0)
205
213
  throw new Error(`getDistance(): observerPosition is ${l}`);
206
214
  const c = D(e), u = l.distanceTo(c);
@@ -208,7 +216,7 @@ class he extends S {
208
216
  }
209
217
  }
210
218
  getAngle(e, t) {
211
- var n, r, s;
219
+ var n, a, s;
212
220
  const i = (n = this.five.panoIndex) != null ? n : t;
213
221
  if (i === void 0)
214
222
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
@@ -216,44 +224,44 @@ class he extends S {
216
224
  if (o.angle !== void 0)
217
225
  return o.angle;
218
226
  {
219
- const l = (s = (r = this.five.work) == null ? void 0 : r.observers[i]) == null ? void 0 : s.position;
227
+ const l = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
220
228
  if (l === void 0)
221
229
  throw new Error(`getAngleRange(): observerPosition is ${l}`);
222
- const c = (() => e.stickType === "3DPoint" ? E(e.normal) : V(e.position))();
230
+ const c = (() => e.stickType === "3DPoint" ? E(e.normal) : A(e.position))();
223
231
  if (!c)
224
232
  return;
225
- const u = new k.Vector3().copy(l).sub(j(e.position)), f = c.angleTo(u) * 180 / Math.PI;
233
+ const u = new k.Vector3().copy(l).sub(M(e.position)), f = c.angleTo(u) * 180 / Math.PI;
226
234
  return o.angle = f, o.angle;
227
235
  }
228
236
  }
229
237
  getTagConfig(e) {
230
- var o;
238
+ var o, n;
231
239
  if (!e)
232
240
  return (o = this.config.globalConfig) != null ? o : {};
233
241
  const t = {};
234
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((n) => {
235
- const r = n;
236
- if (t[r])
242
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
243
+ const s = a;
244
+ if (t[s])
237
245
  return;
238
- const s = r.split("-");
239
- if (s.length === 1) {
240
- const [l] = s;
241
- e.contentType === l && (t[r] = this.config.contentTypeConfig[r]);
246
+ const l = s.split("-");
247
+ if (l.length === 1) {
248
+ const [c] = l;
249
+ e.contentType === c && (t[s] = this.config.contentTypeConfig[s]);
242
250
  }
243
- if (s.length === 2) {
244
- const [l = "Any", c = "Any"] = s;
245
- (e.stickType === l || l === "Any") && (e.contentType === c || c === "Any") && (t[r] = this.config.contentTypeConfig[r]);
251
+ if (l.length === 2) {
252
+ const [c = "Any", u = "Any"] = l;
253
+ (e.stickType === c || c === "Any") && (e.contentType === u || u === "Any") && (t[s] = this.config.contentTypeConfig[s]);
246
254
  }
247
- if (s.length === 3) {
248
- const [l = "Any", c, u] = s;
249
- if (c === "Audio" && e.contentType === "Audio") {
250
- const f = e;
251
- (f.stickType === l || l === "Any") && f.data.appearance === u && (t[r] = this.config.contentTypeConfig[r]);
255
+ if (l.length === 3) {
256
+ const [c = "Any", u, f] = l;
257
+ if (u === "Audio" && e.contentType === "Audio") {
258
+ const r = e;
259
+ (r.stickType === c || c === "Any") && r.data.appearance === f && (t[s] = this.config.contentTypeConfig[s]);
252
260
  }
253
261
  }
254
262
  });
255
263
  const i = x({}, this.config.globalConfig, ...Object.values(t), e.config);
256
- return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep }), i;
264
+ return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (n = i.visibleConfig) == null ? void 0 : n.visibleFiveMode }), i;
257
265
  }
258
266
  can(e, t) {
259
267
  const i = this.getTagConfig(t);
@@ -321,9 +329,9 @@ class he extends S {
321
329
  getTagProject(e) {
322
330
  if (!this.getVisibleByPanoIndex(e))
323
331
  return;
324
- const i = j(e.position), { x: o, y: n, z: r } = i.project(this.five.camera);
325
- if (!(r > 1))
326
- return { x: o, y: n, z: r };
332
+ const i = M(e.position), { x: o, y: n, z: a } = i.project(this.five.camera);
333
+ if (!(a > 1))
334
+ return { x: o, y: n, z: a };
327
335
  }
328
336
  filterPointTag() {
329
337
  return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint");
@@ -351,19 +359,19 @@ class he extends S {
351
359
  }
352
360
  getTagEnableByIntersect(e, t) {
353
361
  var c, u, f;
354
- const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t), r = (() => {
362
+ const i = (c = this.getTagConfig(e).visibleConfig) != null ? c : {}, o = this.getDistance(e), [n] = this.five.model.intersectRaycaster(t), a = (() => {
355
363
  if (!m(e))
356
364
  return;
357
- const a = this.tags.filter(m).map((h) => {
358
- var v;
359
- return (v = h.model) == null ? void 0 : v.object;
360
- }).filter(_);
361
- return t.intersectObjects(a, !0)[0];
365
+ const r = this.tags.filter(m).map((v) => {
366
+ var h;
367
+ return (h = v.model) == null ? void 0 : h.object;
368
+ }).filter(S);
369
+ return t.intersectObjects(r, !0)[0];
362
370
  })(), s = (() => {
363
- var a;
364
- return typeof i == "object" && typeof i.intersectRaycaster == "object" && (a = i.intersectRaycaster.distanceAccuracy) != null ? a : 0.01;
371
+ var r;
372
+ return typeof i == "object" && typeof i.intersectRaycaster == "object" && (r = i.intersectRaycaster.distanceAccuracy) != null ? r : 0.01;
365
373
  })();
366
- return Math.min((u = n == null ? void 0 : n.distance) != null ? u : 1 / 0, (f = r == null ? void 0 : r.distance) != null ? f : 1 / 0) + s < o ? {
374
+ return Math.min((u = n == null ? void 0 : n.distance) != null ? u : 1 / 0, (f = a == null ? void 0 : a.distance) != null ? f : 1 / 0) + s < o ? {
367
375
  value: !1,
368
376
  reason: `intersectRaycaster check failed: distance is ${o}, intersection.point is ${n.point.toArray()}, distanceError is ${s}`
369
377
  } : { value: !0, reason: "" };
@@ -377,18 +385,14 @@ class he extends S {
377
385
  return this.raycaster.set(i, o), this.raycaster;
378
386
  }
379
387
  checkFloorIndex(e) {
380
- var r;
388
+ var a;
381
389
  const t = e.fiveState;
382
390
  if (!t)
383
391
  return !0;
384
- const i = t.panoIndex, o = (r = this.five.work.observers[i]) == null ? void 0 : r.floorIndex, n = this.five.model.shownFloor;
392
+ const i = t.panoIndex, o = (a = this.five.work.observers[i]) == null ? void 0 : a.floorIndex, n = this.five.model.shownFloor;
385
393
  return n === null || n === o;
386
394
  }
387
- changeTagMode(e, t) {
388
- var i, o, n, r, s;
389
- (i = e.config) != null && i.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (n = (o = e.tag3DContentSvelte) == null ? void 0 : o.domContainer) == null || n.dispose(), (s = (r = e.tag3DContentSvelte) == null ? void 0 : r.svelteApp) == null || s.$destroy(), e.tag3DContentSvelte = void 0;
390
- }
391
395
  }
392
396
  export {
393
- he as TagComputer
397
+ ve as TagComputer
394
398
  };
@@ -176,6 +176,7 @@ declare class PanoTagPluginController extends TagComputer {
176
176
  private addMediaModelTag;
177
177
  /** 加载外部模型 */
178
178
  private loadModel;
179
+ private changeTagMode;
179
180
  }
180
181
  export default PanoTagPluginController;
181
182
  export { PanoTagPluginController };
@@ -1,16 +1,16 @@
1
1
  var x = Object.defineProperty, G = Object.defineProperties;
2
2
  var V = Object.getOwnPropertyDescriptors;
3
- var E = Object.getOwnPropertySymbols;
3
+ var R = Object.getOwnPropertySymbols;
4
4
  var N = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var D = (h, a, e) => a in h ? x(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
5
+ var S = (h, a, e) => a in h ? x(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
6
6
  for (var e in a || (a = {}))
7
- N.call(a, e) && D(h, e, a[e]);
8
- if (E)
9
- for (var e of E(a))
10
- W.call(a, e) && D(h, e, a[e]);
7
+ N.call(a, e) && S(h, e, a[e]);
8
+ if (R)
9
+ for (var e of R(a))
10
+ W.call(a, e) && S(h, e, a[e]);
11
11
  return h;
12
12
  }, f = (h, a) => G(h, V(a));
13
- var d = (h, a, e) => (D(h, typeof a != "symbol" ? a + "" : a, e), e);
13
+ var d = (h, a, e) => (S(h, typeof a != "symbol" ? a + "" : a, e), e);
14
14
  var c = (h, a, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
@@ -28,18 +28,18 @@ var c = (h, a, e) => new Promise((t, i) => {
28
28
  n((e = e.apply(h, a)).next());
29
29
  });
30
30
  import { Subscribe as z } from "@realsee/five";
31
- import { Group as R, Vector3 as T, Matrix4 as C, Quaternion as _ } from "three";
32
- import m from "object-assign-deep";
31
+ import { Group as E, Vector3 as T, Matrix4 as C, Quaternion as _ } from "three";
32
+ import u from "object-assign-deep";
33
33
  import { writable as $ } from "../../vendor/svelte/store/index.js";
34
34
  import q from "../Components/TagContainer.js";
35
35
  import H from "../Components/Tag/index.js";
36
36
  import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
- import { addDebugPoints as Q } from "../utils/addDebugPoints.js";
37
+ import { addDebugPoints as J } from "../utils/addDebugPoints.js";
38
38
  import { planeNormal as O } from "../utils/planeNormal.js";
39
39
  import "@realsee/five/gltf-loader";
40
- import { isMediaModelTag as u } from "../utils/tag/tagCheck.js";
41
- import { waitFiveModelLoaded as X } from "../utils/actionAfterFiveModelLoad.js";
42
- import { normalPositionToPositions as J } from "../utils/normalPositionToPositions.js";
40
+ import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
41
+ import { waitFiveModelLoaded as Q } from "../utils/actionAfterFiveModelLoad.js";
42
+ import { normalPositionToPositions as X } from "../utils/normalPositionToPositions.js";
43
43
  import { debounce as k } from "../utils/debounce.js";
44
44
  import { throttle as K } from "../utils/throttle.js";
45
45
  import { resizeObserver as I } from "../utils/resizeObserver.js";
@@ -48,8 +48,6 @@ import { CSS3DRenderPlugin as Z } from "../../CSS3DRenderPlugin/index.js";
48
48
  import ee from "../utils/tag/format.js";
49
49
  import { generateBlankAudio as L, AudioNamespace as U } from "../../shared-utils/audio.js";
50
50
  import { loadGLTF as te } from "../../shared-utils/three/GLTFLoader.js";
51
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
52
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
53
51
  import { getMediaModelPlanPositions as ie } from "../utils/tag/index.js";
54
52
  import "../../vendor/svelte/internal/index.js";
55
53
  import "../Components/TagItem.js";
@@ -94,8 +92,7 @@ import "../Components/Common/MediaItem.js";
94
92
  import "../Components/Tag/MarketingTag.js";
95
93
  import "hammerjs";
96
94
  import "@tweenjs/tween.js";
97
- import "../../shared-utils/animationFrame/BetterTween.js";
98
- import "../../shared-utils/animationFrame/index.js";
95
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
99
96
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
100
97
  import "three/examples/jsm/renderers/CSS3DRenderer";
101
98
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -107,6 +104,9 @@ import "../../CSS3DRenderPlugin/utils/centerPoint.js";
107
104
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
108
105
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
109
106
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
107
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
108
+ import "../../shared-utils/animationFrame/BetterTween.js";
109
+ import "../../shared-utils/animationFrame/index.js";
110
110
  import "../Components/Tag/AudioTag/index.js";
111
111
  import "../Components/Tag/AudioTag/AudioTag.js";
112
112
  import "../Components/Common/Audio.js";
@@ -124,8 +124,8 @@ import "./TagCacheController.js";
124
124
  import "../../base/BasePlugin.js";
125
125
  import "../../CSS3DRenderPlugin/Controller.js";
126
126
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
127
- const j = "2.0.10", S = `DnalogelPlugin-PanoTagPlugin@${j}`, se = !1, Qt = (h) => `${S}--${h}`;
128
- class Xt extends Y {
127
+ const j = "2.0.10", A = `DnalogelPlugin-PanoTagPlugin@${j}`, se = !1, Jt = (h) => `${A}--${h}`;
128
+ class Qt extends Y {
129
129
  constructor(e, t) {
130
130
  super(e);
131
131
  d(this, "version", j);
@@ -138,8 +138,8 @@ class Xt extends Y {
138
138
  d(this, "mediaStore", $({
139
139
  currentMediaElement: null
140
140
  }));
141
- d(this, "group", new R());
142
- d(this, "gltfObjectGroup", new R());
141
+ d(this, "group", new E());
142
+ d(this, "gltfObjectGroup", new E());
143
143
  d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
144
144
  d(this, "store", {
145
145
  disposers: [],
@@ -149,19 +149,20 @@ class Xt extends Y {
149
149
  });
150
150
  d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
151
151
  d(this, "changeTagModel", (e, t) => c(this, null, function* () {
152
- e.data = m({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
152
+ e.data = u({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
153
153
  }));
154
154
  d(this, "disposedErrorLog", () => {
155
- console.error(`${S} is disposed`);
155
+ console.error(`${A} is disposed`);
156
156
  });
157
157
  d(this, "handleFiveInitAnimationEnded", () => {
158
- this.five.getCurrentState().mode === "Panorama" && this.tags.forEach((e) => {
159
- e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
160
- });
158
+ const e = this.five.getCurrentState().mode;
159
+ this.tags.forEach((t) => {
160
+ t.temporaryState = f(p({}, t.temporaryState), { visible: this.getVisibelByFiveMode(t, e) }), m(t) && e === "Panorama" && this.changeTagMode(t, "front");
161
+ }), this.updateRenderAllTags(), this.updateRenderAllTags();
161
162
  });
162
163
  d(this, "handleFiveModelShownFloorChange", () => {
163
164
  this.tags.forEach((e) => {
164
- !u(e) || (e.state.visible = this.checkFloorIndex(e));
165
+ !m(e) || (e.state.visible = this.checkFloorIndex(e));
165
166
  }), this.updateRenderAllTags();
166
167
  });
167
168
  d(this, "loadModel", (e) => c(this, null, function* () {
@@ -183,14 +184,14 @@ class Xt extends Y {
183
184
  load(e, t) {
184
185
  return c(this, null, function* () {
185
186
  var s, o;
186
- this.clearTags(), console.log(S, " load:", { data: e }), this.config = m({}, this.config, {
187
+ this.clearTags(), console.log(A, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = u({}, this.config, {
187
188
  globalConfig: (s = e.globalConfig) != null ? s : {},
188
189
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
189
190
  });
190
191
  const i = yield this.addTag(e.tagList, t);
191
192
  if (this.debug)
192
193
  try {
193
- Q(this.five, this.tags);
194
+ J(this.five, this.tags);
194
195
  } catch (n) {
195
196
  console.error(n);
196
197
  }
@@ -206,22 +207,22 @@ class Xt extends Y {
206
207
  clickable: n.clickable,
207
208
  mergedConfig: n
208
209
  });
209
- return u(o) && (r.temporaryState = { visible: !1 }), r;
210
+ return m(o) && (r.temporaryState = { visible: !1 }), r;
210
211
  }).filter((o) => o.position);
211
- return s.forEach(ee), this.tags.push(...s), X(this.five).then(() => {
212
+ return s.forEach(ee), this.tags.push(...s), Q(this.five).then(() => {
212
213
  var o, n, r;
213
214
  return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), console.log("\u{1F436} ==> waitFiveModelLoaded:"), this.addMediaModelTag(s);
214
215
  });
215
216
  });
216
217
  }
217
218
  changeConfig(e, t = !0) {
218
- t ? this.config = m({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
219
+ t ? this.config = u({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
219
220
  }
220
221
  changeGlobalConfig(e, t = !0) {
221
- t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
222
+ t ? this.config.globalConfig = u({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
222
223
  }
223
224
  clearTags() {
224
- this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
225
+ this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
225
226
  }
226
227
  show(e) {
227
228
  return c(this, null, function* () {
@@ -279,14 +280,14 @@ class Xt extends Y {
279
280
  }
280
281
  changeDataById(e, t, i = !0) {
281
282
  const s = this.getTagById(e);
282
- !s || (i ? s.data = m({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
283
+ !s || (i ? s.data = u({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
283
284
  }
284
285
  changeStickTypeById(e, t, i = !0) {
285
286
  this.changeTagById(e, t, i);
286
287
  }
287
288
  changeTagById(e, t, i = !0) {
288
289
  const s = this.getTagById(e);
289
- !t || (i ? m(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = v(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
290
+ !t || (i ? u(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = v(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
290
291
  }
291
292
  destroyTagById(e) {
292
293
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -302,9 +303,9 @@ class Xt extends Y {
302
303
  const i = (w = (M = (P = e.mergedConfig) == null ? void 0 : P.tag3DConfig) == null ? void 0 : M.ratio) != null ? w : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
303
304
  if (!s)
304
305
  return;
305
- const o = u(e) ? e.data.mediaPosition : e.position;
306
+ const o = m(e) ? e.data.mediaPosition : e.position;
306
307
  t.updateWorldMatrix(!1, !1);
307
- const n = t.matrixWorld, r = new T().fromArray(o[0]), l = new T().fromArray(o[2]), g = new T().lerpVectors(r, l, 0.5).add(new T(0, 0, 5e-4)), A = new C().setPosition(g), B = new C().makeScale(i, i, i), y = new C().multiply(n).multiply(A).multiply(B);
308
+ const n = t.matrixWorld, r = new T().fromArray(o[0]), l = new T().fromArray(o[2]), g = new T().lerpVectors(r, l, 0.5).add(new T(0, 0, 5e-4)), D = new C().setPosition(g), B = new C().makeScale(i, i, i), y = new C().multiply(n).multiply(D).multiply(B);
308
309
  y.decompose(s.position, s.quaternion, s.scale);
309
310
  const b = s.opacityMesh;
310
311
  !b || y.decompose(b.position, b.quaternion, b.scale);
@@ -336,8 +337,8 @@ class Xt extends Y {
336
337
  });
337
338
  }
338
339
  addEventListener() {
339
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), A = this.five.currentMode;
340
- return this.handleFiveModeChange(A), 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", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", g), () => {
340
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), D = this.five.currentMode;
341
+ return this.handleFiveModeChange(D), 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", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", g), () => {
341
342
  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", n), e.off("panoArrived", r), e.off("panoArrived", l), t.off("click", g), this.store.eventListenerDisposer = void 0;
342
343
  };
343
344
  }
@@ -374,12 +375,8 @@ class Xt extends Y {
374
375
  }
375
376
  handleFiveModeChange(e) {
376
377
  this.tags.forEach((t) => {
377
- if (u(t)) {
378
- e !== "Panorama" && (t.mediaVisible = this.checkFloorIndex(t)), this.changeTagMode(t, e === "Panorama" ? "front" : "behind"), this.updateRenderAllTags();
379
- return;
380
- }
381
- e !== "Panorama" && (t.temporaryState = f(p({}, t.temporaryState), { visible: !1 }));
382
- }), this.updateRenderAllTags();
378
+ t.temporaryState = f(p({}, t.temporaryState), { visible: this.getVisibelByFiveMode(t, e) }), m(t) && e !== "Panorama" && this.changeTagMode(t, "behind");
379
+ }), this.updateRenderAllTags(), this.updateRenderAllTags();
383
380
  }
384
381
  handleFiveWantsMoveToPano() {
385
382
  this.tags.forEach((e) => {
@@ -480,7 +477,7 @@ class Xt extends Y {
480
477
  return;
481
478
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Z(this.five)), t.stickType === "3DPoint" && !t.normal)
482
479
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
483
- const s = (() => t.stickType === "Plane" ? t.position : t.stickType === "Model" && t.contentType === "MediaModel" ? ie(t) : J(
480
+ const s = (() => t.stickType === "Plane" ? t.position : t.stickType === "Model" && t.contentType === "MediaModel" ? ie(t) : X(
484
481
  this.five.camera.position,
485
482
  v(t.position),
486
483
  v(t.normal)
@@ -520,7 +517,7 @@ class Xt extends Y {
520
517
  }
521
518
  updateRenderModelTag() {
522
519
  const e = (i) => !this.enabledModelTagSet.has(i.customID);
523
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(u).forEach((i) => {
520
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
524
521
  var s;
525
522
  (s = i.model) == null || s.promise.then((o) => {
526
523
  o.visible = i.state.visible;
@@ -544,13 +541,17 @@ class Xt extends Y {
544
541
  }
545
542
  addMediaModelTag(e) {
546
543
  return c(this, null, function* () {
547
- const t = e.filter(u).map(this.loadModel);
544
+ const t = e.filter(m).map(this.loadModel);
548
545
  yield Promise.all(t), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
549
546
  });
550
547
  }
548
+ changeTagMode(e, t) {
549
+ var i, s, o, n, r;
550
+ ((o = (s = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null ? void 0 : o.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (r = this.store.css3DRenderDisposer.get(e.id)) == null || r(), e.tag3DContentSvelte = void 0);
551
+ }
551
552
  }
552
553
  export {
553
- Xt as PanoTagPluginController,
554
- Xt as default,
555
- Qt as pluginFlag
554
+ Qt as PanoTagPluginController,
555
+ Qt as default,
556
+ Jt as pluginFlag
556
557
  };
@@ -1,5 +1,5 @@
1
1
  import type { Create3DDomContainerParamsType } from '../../../CSS3DRenderPlugin/Controller';
2
- import type { Five } from '@realsee/five';
2
+ import type { Five, Mode } from '@realsee/five';
3
3
  import type { TagContentType } from './TagData';
4
4
  import type { Tag } from './Tag';
5
5
  import type { MinMax, StickType } from './Utils';
@@ -8,6 +8,7 @@ export interface TagConfig<C extends TagContentType = TagContentType, S extends
8
8
  visibleConfig?: {
9
9
  /** 保持可见/不可见, 设置后visibleConfig下所有其他配置都不生效 */
10
10
  keep?: 'visible' | 'hidden';
11
+ visibleFiveMode?: Mode[];
11
12
  /** 走点时不隐藏 */
12
13
  alwaysShowWhenMovePano?: true;
13
14
  /** min-max米内显示 | 无距离限制 */
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.6.7-dev.0",
10
+ "version": "2.6.7-dev.1",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
@@ -1,4 +0,0 @@
1
- declare const data: {
2
- tagList: any[];
3
- };
4
- export default data;
@@ -1,6 +0,0 @@
1
- const t = {
2
- tagList: []
3
- };
4
- export {
5
- t as default
6
- };