@realsee/dnalogel 2.14.0-alpha.0 → 2.14.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (263) hide show
  1. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  2. package/dist/index.cjs.js +3 -3
  3. package/dist/index.js +43 -25
  4. package/dist/index.umd.js +3 -3
  5. package/docs/classes/CSS3DRender.html +4 -4
  6. package/docs/classes/CruisePluginController.html +4 -4
  7. package/docs/classes/Magnifier.html +4 -4
  8. package/docs/classes/ModelRoomLabelController.html +4 -4
  9. package/docs/classes/Object3DHelperController.html +4 -4
  10. package/docs/classes/PaintBrush.html +4 -4
  11. package/docs/classes/PanoMeasurePluginLine.html +4 -4
  12. package/docs/classes/PanoMeasurePluginModel.html +4 -4
  13. package/docs/classes/PanoMeasurePluginPoint.html +4 -4
  14. package/docs/classes/PanoMeasurePluginPolyline.html +4 -4
  15. package/docs/classes/PanoTagPluginController.html +4 -4
  16. package/docs/classes/Util.BetterTween.html +4 -4
  17. package/docs/classes/Util.FivePointSelector.html +4 -4
  18. package/docs/classes/Util.Interval.html +4 -4
  19. package/docs/classes/Util.Magnifier.html +4 -4
  20. package/docs/classes/Util.PointDomHelper.html +4 -4
  21. package/docs/classes/Util.PointHelper.html +4 -4
  22. package/docs/classes/Util.Rectangle.html +4 -4
  23. package/docs/enums/CameraMovementEffect.html +4 -4
  24. package/docs/enums/ContentType.html +4 -4
  25. package/docs/enums/DIRECTION.html +4 -4
  26. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +4 -4
  27. package/docs/enums/DimensionType.html +4 -4
  28. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +4 -4
  29. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +4 -4
  30. package/docs/enums/PaintBrushTypeEnum.html +4 -4
  31. package/docs/enums/Rotation.html +4 -4
  32. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  33. package/docs/functions/CameraMovementPlugin.html +4 -4
  34. package/docs/functions/CruisePlugin.html +4 -4
  35. package/docs/functions/GuideLinePlugin.html +4 -4
  36. package/docs/functions/ItemLabelPlugin.html +4 -4
  37. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  39. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  40. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  41. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  42. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  43. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  44. package/docs/functions/ModelViewPlugin.html +4 -4
  45. package/docs/functions/Object3DHelperPlugin.html +4 -4
  46. package/docs/functions/PanoCompassPlugin.html +4 -4
  47. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  48. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  49. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  50. package/docs/functions/PanoMeasurePlugin.html +4 -4
  51. package/docs/functions/PanoRulerPlugin.html +4 -4
  52. package/docs/functions/PanoRulerProPlugin.html +4 -4
  53. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  54. package/docs/functions/PanoTagPlugin.html +4 -4
  55. package/docs/functions/PanoVideoPlugin.html +4 -4
  56. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  57. package/docs/functions/Util.getCoordsFromClient.html +4 -4
  58. package/docs/functions/Util.getCoordsFromElement.html +4 -4
  59. package/docs/functions/Util.getFrameTime.html +4 -4
  60. package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
  61. package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
  62. package/docs/functions/Util.isNil.html +4 -4
  63. package/docs/functions/Util.nextFrame.html +4 -4
  64. package/docs/functions/Util.notNil.html +4 -4
  65. package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
  66. package/docs/functions/Util.tweenProgress.html +4 -4
  67. package/docs/functions/pluginFlag.html +4 -4
  68. package/docs/index.html +4 -4
  69. package/docs/interfaces/AddTagConfig.html +4 -4
  70. package/docs/interfaces/CSS3DRenderPluginEventMap.html +4 -4
  71. package/docs/interfaces/CSS3DRenderPluginState.html +4 -4
  72. package/docs/interfaces/CameraMovementPluginExportType.html +4 -4
  73. package/docs/interfaces/EventMap.html +4 -4
  74. package/docs/interfaces/FloorplanBounding.html +4 -4
  75. package/docs/interfaces/FloorplanData.html +4 -4
  76. package/docs/interfaces/FloorplanEntrance.html +4 -4
  77. package/docs/interfaces/FloorplanExtraObject.html +4 -4
  78. package/docs/interfaces/FloorplanExtraObject3D.html +4 -4
  79. package/docs/interfaces/FloorplanFloorData.html +4 -4
  80. package/docs/interfaces/FloorplanImagePosition.html +4 -4
  81. package/docs/interfaces/FloorplanObserver.html +4 -4
  82. package/docs/interfaces/FloorplanOutlineItem.html +4 -4
  83. package/docs/interfaces/FloorplanPosition.html +4 -4
  84. package/docs/interfaces/FloorplanRoomItem.html +4 -4
  85. package/docs/interfaces/FloorplanRoomLabelItem.html +4 -4
  86. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  87. package/docs/interfaces/FloorplanServerComputedData.html +4 -4
  88. package/docs/interfaces/FloorplanServerData.html +4 -4
  89. package/docs/interfaces/FloorplanServerDoorItem.html +4 -4
  90. package/docs/interfaces/FloorplanServerDoorPosition.html +4 -4
  91. package/docs/interfaces/FloorplanServerEntrance.html +4 -4
  92. package/docs/interfaces/FloorplanServerFloorData.html +4 -4
  93. package/docs/interfaces/FloorplanServerImagePosition.html +4 -4
  94. package/docs/interfaces/FloorplanServerObserver.html +4 -4
  95. package/docs/interfaces/FloorplanServerOutlineItem.html +4 -4
  96. package/docs/interfaces/FloorplanServerPosition.html +4 -4
  97. package/docs/interfaces/FloorplanServerRoomItem.html +4 -4
  98. package/docs/interfaces/FloorplanServerRoomLabelItem.html +4 -4
  99. package/docs/interfaces/HelperOffset.html +4 -4
  100. package/docs/interfaces/ImagePlaneGroup.html +4 -4
  101. package/docs/interfaces/ItemLabelPluginData.html +4 -4
  102. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +4 -4
  103. package/docs/interfaces/ItemLabelPluginParametersType.html +4 -4
  104. package/docs/interfaces/MinMax.html +4 -4
  105. package/docs/interfaces/ModelChassisCompassPluginData.html +4 -4
  106. package/docs/interfaces/ModelChassisCompassPluginExportType.html +4 -4
  107. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +4 -4
  108. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +4 -4
  109. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +4 -4
  110. package/docs/interfaces/ModelItemLabelPluginData.html +4 -4
  111. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +4 -4
  112. package/docs/interfaces/ModelItemLabelPluginParametersType.html +4 -4
  113. package/docs/interfaces/ModelRoomLabelPluginData.html +4 -4
  114. package/docs/interfaces/ModelTVVideoPluginData.html +4 -4
  115. package/docs/interfaces/ModelTVVideoPluginExportType.html +4 -4
  116. package/docs/interfaces/ModelTVVideoPluginParameterType.html +4 -4
  117. package/docs/interfaces/ModelViewPluginExportType.html +4 -4
  118. package/docs/interfaces/Object3DHelperState.html +4 -4
  119. package/docs/interfaces/ObjectHelperControllers.html +4 -4
  120. package/docs/interfaces/PaintBrushAction.html +4 -4
  121. package/docs/interfaces/PaintBrushConfigs.html +4 -4
  122. package/docs/interfaces/PaintBrushState.html +4 -4
  123. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +4 -4
  124. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
  125. package/docs/interfaces/PanoMeasureParameterType.html +4 -4
  126. package/docs/interfaces/PanoMeasurePluginLineJson.html +4 -4
  127. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +4 -4
  128. package/docs/interfaces/PanoMeasurePluginPointJson.html +4 -4
  129. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +4 -4
  130. package/docs/interfaces/PanoRulerPluginExportType.html +4 -4
  131. package/docs/interfaces/PanoRulerPluginOptions.html +4 -4
  132. package/docs/interfaces/PanoRulerPluginParameterType.html +4 -4
  133. package/docs/interfaces/PanoRulerProPluginExportType.html +4 -4
  134. package/docs/interfaces/PanoRulerProPluginOptions.html +4 -4
  135. package/docs/interfaces/PanoRulerProPluginParameterType.html +4 -4
  136. package/docs/interfaces/PanoRulerProPluginState.html +4 -4
  137. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
  138. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
  139. package/docs/interfaces/PanoSpatialTagPluginData.html +4 -4
  140. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +4 -4
  141. package/docs/interfaces/PanoSpatialTagPluginExportType.html +4 -4
  142. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +4 -4
  143. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +4 -4
  144. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +4 -4
  145. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +4 -4
  146. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +4 -4
  147. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +4 -4
  148. package/docs/interfaces/PanoVideoPluginType.PluginData.html +4 -4
  149. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +4 -4
  150. package/docs/interfaces/PanoVideoPluginType.PluginState.html +4 -4
  151. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +4 -4
  152. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +4 -4
  153. package/docs/interfaces/Point.html +4 -4
  154. package/docs/interfaces/Room.html +4 -4
  155. package/docs/interfaces/RoomInfo.html +4 -4
  156. package/docs/interfaces/RoomLabel.html +4 -4
  157. package/docs/interfaces/RoomRules.html +4 -4
  158. package/docs/interfaces/Rooms.html +4 -4
  159. package/docs/interfaces/Scissor.html +4 -4
  160. package/docs/interfaces/State.html +4 -4
  161. package/docs/interfaces/TagCacheInterface.html +4 -4
  162. package/docs/interfaces/TagConfig.html +4 -4
  163. package/docs/interfaces/TagGLTFObjectGroup.html +4 -4
  164. package/docs/interfaces/TagIconUrl.html +4 -4
  165. package/docs/interfaces/TagObjectGroup.html +4 -4
  166. package/docs/interfaces/TagStyle.html +4 -4
  167. package/docs/interfaces/Tags.html +4 -4
  168. package/docs/interfaces/TemporaryState.html +4 -4
  169. package/docs/interfaces/Util.MagnifierParameter.html +4 -4
  170. package/docs/interfaces/Util.MouseGroupParameter.html +4 -4
  171. package/docs/modules/PanoVideoPluginType.html +4 -4
  172. package/docs/modules/Util.html +4 -4
  173. package/docs/modules.html +4 -4
  174. package/docs/types/ArrayPosition.html +4 -4
  175. package/docs/types/AudioAppearance.html +4 -4
  176. package/docs/types/AudioTagTypeConfigKey.html +4 -4
  177. package/docs/types/CSS3DRenderExportType.html +4 -4
  178. package/docs/types/CSS3DRenderPluginExportType.html +4 -4
  179. package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
  180. package/docs/types/ClassFunctionParameters.html +4 -4
  181. package/docs/types/Color.html +4 -4
  182. package/docs/types/ContentTypeConfigKey.html +4 -4
  183. package/docs/types/ContentTypeConfigKeySplit.html +4 -4
  184. package/docs/types/ContentTypeMap.html +4 -4
  185. package/docs/types/Create3DDomContainerReturnType.html +4 -4
  186. package/docs/types/Create3DElementReturnType.html +4 -4
  187. package/docs/types/CruisePluginExportType.html +4 -4
  188. package/docs/types/Direction-1.html +4 -4
  189. package/docs/types/Direction4.html +4 -4
  190. package/docs/types/FloorplanRuleLabels.html +4 -4
  191. package/docs/types/FloorplanServerRuleLabels.html +4 -4
  192. package/docs/types/GuideLinePluginExportType.html +4 -4
  193. package/docs/types/HelperEventMap.html +4 -4
  194. package/docs/types/LoadTagConfig.html +4 -4
  195. package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
  196. package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
  197. package/docs/types/MediaData.html +4 -4
  198. package/docs/types/MediaStore.html +4 -4
  199. package/docs/types/ModelElement.html +4 -4
  200. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
  201. package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
  202. package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
  203. package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
  204. package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
  205. package/docs/types/MoveArgs.html +4 -4
  206. package/docs/types/MoveOpts.html +4 -4
  207. package/docs/types/Object3DHelperEventMap.html +4 -4
  208. package/docs/types/ObjectFit.html +4 -4
  209. package/docs/types/PaintBrushEventMap.html +4 -4
  210. package/docs/types/PanoCompassPluginData.html +4 -4
  211. package/docs/types/PanoCompassPluginExportType.html +4 -4
  212. package/docs/types/PanoCompassPluginParameterType.html +4 -4
  213. package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
  214. package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
  215. package/docs/types/PanoIndex.html +4 -4
  216. package/docs/types/PanoMeasurePluginEvent.html +4 -4
  217. package/docs/types/PanoMeasureReturnType.html +4 -4
  218. package/docs/types/PanoSpatialTagPluginId.html +4 -4
  219. package/docs/types/PanoTagPluginExportInterface.html +4 -4
  220. package/docs/types/PanoTagPluginParamsInterface.html +4 -4
  221. package/docs/types/PanoVideoPluginParameterType.html +4 -4
  222. package/docs/types/PanoVideoPluginReturnType.html +4 -4
  223. package/docs/types/PlaneTag.html +4 -4
  224. package/docs/types/PlaneTagElement.html +4 -4
  225. package/docs/types/Point2DElement.html +4 -4
  226. package/docs/types/Point2DTag.html +4 -4
  227. package/docs/types/Point3DElement.html +4 -4
  228. package/docs/types/Point3DTag.html +4 -4
  229. package/docs/types/PointTag.html +4 -4
  230. package/docs/types/PointTagElement.html +4 -4
  231. package/docs/types/Position.html +4 -4
  232. package/docs/types/RotateArgs.html +4 -4
  233. package/docs/types/RotateOpts.html +4 -4
  234. package/docs/types/RuleLabelsKey.html +4 -4
  235. package/docs/types/RuleLabelsValue.html +4 -4
  236. package/docs/types/StickType.html +4 -4
  237. package/docs/types/Tag.html +4 -4
  238. package/docs/types/Tag2D.html +4 -4
  239. package/docs/types/Tag3D.html +4 -4
  240. package/docs/types/TagContentType.html +4 -4
  241. package/docs/types/TagDimensionType.html +4 -4
  242. package/docs/types/TagElement.html +4 -4
  243. package/docs/types/TagEvents.html +4 -4
  244. package/docs/types/TagGLTFObject.html +4 -4
  245. package/docs/types/TagHooks.html +4 -4
  246. package/docs/types/TagIconSize.html +4 -4
  247. package/docs/types/TagId.html +4 -4
  248. package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
  249. package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
  250. package/docs/types/WorkCode.html +4 -4
  251. package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
  252. package/docs/variables/PLUGIN.html +4 -4
  253. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
  254. package/docs/variables/ROOM_TYPE_MAP.html +4 -4
  255. package/docs/variables/itemLabelPluginServerParams.html +4 -4
  256. package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
  257. package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
  258. package/libs/PanoTagPlugin/Components/Common/Media.js +1 -1
  259. package/libs/PanoTagPlugin/controller/TagRender.js +13 -11
  260. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -1
  261. package/libs/PanoTagPlugin/controller/TagUtil.js +108 -92
  262. package/libs/base/BasePlugin.js +3 -3
  263. package/package.json +1 -1
@@ -4,7 +4,7 @@ var l = (u, c, e) => (y(u, typeof c != "symbol" ? c + "" : c, e), e);
4
4
  import C from "object-assign-deep";
5
5
  import * as P from "three";
6
6
  import { DefaultConfig as D } from "../tag.config.js";
7
- import { anyPositionToVector3 as E, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
7
+ import { anyPositionToVector3 as E, arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
8
  import { planeNormal as p } from "../utils/planeNormal.js";
9
9
  import { tagPosition as k, getTagPosition as w } from "../utils/tagPosition.js";
10
10
  import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
@@ -31,7 +31,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
31
31
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
32
32
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
33
33
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
34
- class de extends b {
34
+ class ae extends b {
35
35
  constructor(e) {
36
36
  super(e);
37
37
  l(this, "tags", []);
@@ -53,8 +53,8 @@ class de extends b {
53
53
  if ((e = this.mouseInfo) != null && e.isDown)
54
54
  return !1;
55
55
  });
56
- const t = this.five.getElement();
57
- t && (this.domEvents = new L(this.five.camera, t)), this.five.on("wantsMoveToPano", this.fiveWantMovePanoHandler), this.store.disposers.push(() => {
56
+ const i = this.five.getElement();
57
+ i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.fiveWantMovePanoHandler), this.store.disposers.push(() => {
58
58
  this.five.off("wantsMoveToPano", this.fiveWantMovePanoHandler);
59
59
  });
60
60
  }
@@ -62,117 +62,117 @@ class de extends b {
62
62
  return this.five.currentMode === "Panorama";
63
63
  }
64
64
  getTagById(e) {
65
- const t = this.tags.find((i) => i.id === e);
66
- if (!t) {
65
+ const i = this.tags.find((o) => o.id === e);
66
+ if (!i) {
67
67
  console.warn(`error: can not find tag id ${e} by getTagById()`);
68
68
  return;
69
69
  }
70
- return t;
70
+ return i;
71
71
  }
72
72
  pauseCurrentMedia() {
73
73
  this.mediaStore.set({ currentMediaElement: null });
74
74
  }
75
75
  getTagConfig(e) {
76
- var n, r;
76
+ var t, d;
77
77
  if (!e)
78
- return (n = this.config.globalConfig) != null ? n : {};
79
- const t = {};
78
+ return (t = this.config.globalConfig) != null ? t : {};
79
+ const i = {};
80
80
  this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
81
- const s = a;
82
- if (t[s])
81
+ const r = a;
82
+ if (i[r])
83
83
  return;
84
- const o = s.split("-");
85
- if (o.length === 1) {
86
- const [f] = o;
87
- e.contentType === f && (t[s] = this.config.contentTypeConfig[s]);
84
+ const f = r.split("-");
85
+ if (f.length === 1) {
86
+ const [s] = f;
87
+ e.contentType === s && (i[r] = this.config.contentTypeConfig[r]);
88
88
  }
89
- if (o.length === 2) {
90
- const [f = "Any", d = "Any"] = o;
91
- (e.stickType === f || f === "Any") && (e.contentType === d || d === "Any") && (t[s] = this.config.contentTypeConfig[s]);
89
+ if (f.length === 2) {
90
+ const [s = "Any", n = "Any"] = f;
91
+ (e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
92
92
  }
93
- if (o.length === 3) {
94
- const [f = "Any", d, g] = o;
95
- if (d === "Audio" && e.contentType === "Audio") {
93
+ if (f.length === 3) {
94
+ const [s = "Any", n, h] = f;
95
+ if (n === "Audio" && e.contentType === "Audio") {
96
96
  const m = e;
97
- (m.stickType === f || f === "Any") && m.data.appearance === g && (t[s] = this.config.contentTypeConfig[s]);
97
+ (m.stickType === s || s === "Any") && m.data.appearance === h && (i[r] = this.config.contentTypeConfig[r]);
98
98
  }
99
99
  }
100
100
  });
101
- const i = C({}, this.config.globalConfig, ...Object.values(t), e.config);
102
- 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: (r = i.visibleConfig) == null ? void 0 : r.visibleFiveMode }), i;
101
+ const o = C({}, this.config.globalConfig, ...Object.values(i), e.config);
102
+ 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;
103
103
  }
104
104
  loadVideoFirstFrame() {
105
105
  A && this.hooks.emit("loadVideoFirstFrame");
106
106
  }
107
107
  updateTagConfig(e) {
108
- e != null && e.force && this.clearCache(), this.tags.forEach((t) => {
109
- const i = this.getTagConfig(t);
110
- t.mergedConfig = i;
108
+ e != null && e.force && this.clearCache(), this.tags.forEach((i) => {
109
+ const o = this.getTagConfig(i);
110
+ i.mergedConfig = o;
111
111
  });
112
112
  }
113
- can(e, t) {
114
- const i = t, n = this.getTagConfig(i);
115
- if (!n || typeof n != "object")
113
+ can(e, i) {
114
+ const o = i, t = this.getTagConfig(o);
115
+ if (!t || typeof t != "object")
116
116
  return !0;
117
117
  if (e === "show" || e === "hide") {
118
- if (!n.visibleConfig || typeof n.visibleConfig != "object")
118
+ if (!t.visibleConfig || typeof t.visibleConfig != "object")
119
119
  return !0;
120
- if (e === "show" && n.visibleConfig.keep === "hidden" || e === "hide" && (n.visibleConfig.keep === "visible" || n.visibleConfig.alwaysShowWhenMovePano))
120
+ if (e === "show" && t.visibleConfig.keep === "hidden" || e === "hide" && (t.visibleConfig.keep === "visible" || t.visibleConfig.alwaysShowWhenMovePano))
121
121
  return !1;
122
122
  }
123
123
  if (e === "fold" || e === "unfold") {
124
- if (!n.unfoldedConfig || typeof n.unfoldedConfig != "object")
124
+ if (!t.unfoldedConfig || typeof t.unfoldedConfig != "object")
125
125
  return !0;
126
- if (e === "fold" && n.unfoldedConfig.keep === "unfolded" || e === "unfold" && n.unfoldedConfig.keep === "folded")
126
+ if (e === "fold" && t.unfoldedConfig.keep === "unfolded" || e === "unfold" && t.unfoldedConfig.keep === "folded")
127
127
  return !1;
128
128
  }
129
129
  if (e === "renderByMesh")
130
- if (x(i) || v(i)) {
131
- const r = i.data.mediaData;
132
- return r.length === 1 && r[0].type === "Image" && n.renderType === "Mesh";
130
+ if (x(o) || v(o)) {
131
+ const d = o.data.mediaData;
132
+ return d.length === 1 && d[0].type === "Image" && t.renderType === "Mesh";
133
133
  } else
134
134
  return !1;
135
135
  return !0;
136
136
  }
137
- getAngle(e, t) {
138
- var r, a, s;
139
- const i = (r = this.five.panoIndex) != null ? r : t;
140
- if (i === void 0)
141
- throw new Error(`getDistance(): fivePanoIndex is ${i}`);
142
- const n = this.getCache({ panoIndex: t, id: e.id });
143
- if (n.angle !== void 0)
144
- return n.angle;
137
+ getAngle(e, i) {
138
+ var d, a, r;
139
+ const o = (d = this.five.panoIndex) != null ? d : i;
140
+ if (o === void 0)
141
+ throw new Error(`getDistance(): fivePanoIndex is ${o}`);
142
+ const t = this.getCache({ panoIndex: i, id: e.id });
143
+ if (t.angle !== void 0)
144
+ return t.angle;
145
145
  {
146
- const o = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
147
- if (o === void 0)
148
- throw new Error(`getAngleRange(): observerPosition is ${o}`);
149
- const f = (() => e.stickType === "3DPoint" ? E(e.normal) : p(e.position))();
150
- if (!f)
146
+ const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
147
+ if (f === void 0)
148
+ throw new Error(`getAngleRange(): observerPosition is ${f}`);
149
+ const s = (() => e.stickType === "3DPoint" ? E(e.normal) : p(e.position))();
150
+ if (!s)
151
151
  return;
152
- const d = k(e.position);
153
- if (!d)
152
+ const n = k(e.position);
153
+ if (!n)
154
154
  return;
155
- const g = new P.Vector3().copy(o).sub(d), m = f.angleTo(g) * 180 / Math.PI;
156
- return n.angle = m, n.angle;
155
+ const h = new P.Vector3().copy(f).sub(n), m = s.angleTo(h) * 180 / Math.PI;
156
+ return t.angle = m, t.angle;
157
157
  }
158
158
  }
159
- getDistance(e, t) {
160
- var r, a, s;
161
- const i = (r = this.five.panoIndex) != null ? r : t;
162
- if (i === void 0)
163
- throw new Error(`getDistance(): fivePanoIndex is ${i}`);
164
- const n = this.getCache({ panoIndex: t, id: e.id });
165
- if (n.distance !== void 0)
166
- return n.distance;
159
+ getDistance(e, i) {
160
+ var d, a, r;
161
+ const o = (d = this.five.panoIndex) != null ? d : i;
162
+ if (o === void 0)
163
+ throw new Error(`getDistance(): fivePanoIndex is ${o}`);
164
+ const t = this.getCache({ panoIndex: i, id: e.id });
165
+ if (t.distance !== void 0)
166
+ return t.distance;
167
167
  {
168
- const o = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
169
- if (o === void 0)
170
- throw new Error(`getDistance(): observerPosition is ${o}`);
171
- const f = w(e);
172
- if (!f)
168
+ const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
169
+ if (f === void 0)
170
+ throw new Error(`getDistance(): observerPosition is ${f}`);
171
+ const s = w(e);
172
+ if (!s)
173
173
  return -1;
174
- const d = o.distanceTo(f);
175
- return n.distance = d, d;
174
+ const n = f.distanceTo(s);
175
+ return t.distance = n, n;
176
176
  }
177
177
  }
178
178
  getPositions(e) {
@@ -180,47 +180,63 @@ class de extends b {
180
180
  return e.position;
181
181
  if (v(e))
182
182
  return e.data.mediaPosition;
183
- const t = e;
183
+ const i = e;
184
184
  return M(
185
185
  this.five.camera.position,
186
- h(t.position),
187
- h(t.normal)
186
+ g(i.position),
187
+ g(i.normal)
188
188
  );
189
189
  }
190
- addObjectClickHandler(e, t) {
191
- if (!e || !this.domEvents)
190
+ addObjectClickHandler(e, i, o) {
191
+ if (!i || !this.domEvents)
192
192
  return () => {
193
193
  };
194
- const i = (s) => {
195
- const o = s.origDomEvent;
194
+ const t = !e.mediaVisible || !e.state.visible || !this.state.visible, d = (s) => {
195
+ if (t) {
196
+ this.mouseInfo = void 0;
197
+ return;
198
+ }
199
+ const n = s.origDomEvent;
196
200
  this.mouseInfo = {
197
- x: o.clientX,
198
- y: o.clientY,
201
+ x: n.clientX,
202
+ y: n.clientY,
199
203
  isDown: !0,
200
204
  mouseDownTimestamp: Date.now()
201
205
  };
202
- }, n = (s) => {
203
- const o = s.origDomEvent;
204
- !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === o.clientX && this.mouseInfo.y === o.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(o), this.mouseInfo = void 0);
206
+ }, a = (s) => {
207
+ if (t) {
208
+ this.mouseInfo = void 0;
209
+ return;
210
+ }
211
+ const n = s.origDomEvent;
212
+ !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === n.clientX && this.mouseInfo.y === n.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
205
213
  }, r = (s) => {
206
- const o = s.origDomEvent;
214
+ if (t) {
215
+ this.mouseInfo = void 0;
216
+ return;
217
+ }
218
+ const n = s.origDomEvent;
207
219
  this.mouseInfo = {
208
- x: Math.floor(o.touches[0].clientX),
209
- y: Math.floor(o.touches[0].clientY),
220
+ x: Math.floor(n.touches[0].clientX),
221
+ y: Math.floor(n.touches[0].clientY),
210
222
  isDown: !0,
211
223
  mouseDownTimestamp: Date.now()
212
224
  };
213
- }, a = (s) => {
214
- const o = s.origDomEvent;
215
- !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(o.changedTouches[o.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(o.changedTouches[o.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(o), this.mouseInfo = void 0);
225
+ }, f = (s) => {
226
+ if (t) {
227
+ this.mouseInfo = void 0;
228
+ return;
229
+ }
230
+ const n = s.origDomEvent;
231
+ !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
216
232
  };
217
- return this.domEvents.addEventListener(e, "mousedown", i, !1), this.domEvents.addEventListener(e, "mouseup", n, !1), this.domEvents.addEventListener(e, "touchstart", r, !1), this.domEvents.addEventListener(e, "touchend", a, !1), () => {
218
- !this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(e, "mousedown", i), this.domEvents.removeEventListener(e, "mouseup", n), this.domEvents.removeEventListener(e, "touchstart", r), this.domEvents.removeEventListener(e, "touchend", a));
233
+ return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
234
+ !this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
219
235
  };
220
236
  }
221
237
  getTagNormal(e) {
222
238
  if (e.normal)
223
- return h(e.normal);
239
+ return g(e.normal);
224
240
  if (e.stickType === "Plane")
225
241
  return p(e.position);
226
242
  if (e.stickType === "Model")
@@ -254,5 +270,5 @@ class de extends b {
254
270
  }
255
271
  }
256
272
  export {
257
- de as TagUtil
273
+ ae as TagUtil
258
274
  };
@@ -2,9 +2,9 @@ var i = Object.defineProperty;
2
2
  var a = (e, r, t) => r in e ? i(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;
3
3
  var s = (e, r, t) => (a(e, typeof r != "symbol" ? r + "" : r, t), t);
4
4
  import { Subscribe as c } from "../shared-utils/Subscribe.js";
5
- class o {
5
+ class x {
6
6
  constructor(r, t) {
7
- s(this, "VERSION", "2.14.0-alpha.0");
7
+ s(this, "VERSION", "2.14.0-dev.0");
8
8
  s(this, "five");
9
9
  s(this, "hooks", new c());
10
10
  s(this, "staticPrefix", "//vrlab-static.ljcdn.com");
@@ -15,5 +15,5 @@ class o {
15
15
  }
16
16
  }
17
17
  export {
18
- o as Controller
18
+ x as Controller
19
19
  };
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.14.0-alpha.0",
10
+ "version": "2.14.0-dev.0",
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*",