@realsee/dnalogel 2.6.7-dev.3 → 2.6.7-dev.4

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 (247) hide show
  1. package/dist/index.cjs.js +5 -5
  2. package/dist/index.js +55 -54
  3. package/dist/index.umd.js +1 -1
  4. package/docs/classes/CSS3DRender.html +31 -31
  5. package/docs/classes/CruisePluginController.html +24 -24
  6. package/docs/classes/Magnifier.html +20 -20
  7. package/docs/classes/ModelRoomLabelController.html +11 -11
  8. package/docs/classes/Object3DHelperController.html +24 -24
  9. package/docs/classes/PaintBrush.html +15 -15
  10. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  11. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  12. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  13. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  14. package/docs/classes/PanoTagPluginController.html +46 -46
  15. package/docs/classes/Util.BetterTween.html +8 -8
  16. package/docs/classes/Util.FivePointSelector.html +12 -12
  17. package/docs/classes/Util.Interval.html +12 -12
  18. package/docs/classes/Util.Magnifier.html +17 -17
  19. package/docs/classes/Util.PointDomHelper.html +11 -11
  20. package/docs/classes/Util.PointHelper.html +11 -11
  21. package/docs/classes/Util.Rectangle.html +13 -13
  22. package/docs/enums/CameraMovementEffect.html +7 -7
  23. package/docs/enums/ContentType.html +18 -18
  24. package/docs/enums/DIRECTION.html +9 -9
  25. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/DimensionType.html +7 -7
  27. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  28. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  29. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  30. package/docs/enums/PointType.html +7 -7
  31. package/docs/enums/Rotation.html +8 -8
  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 +5 -5
  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/TopviewFloorplanPlugin.html +4 -4
  56. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  57. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  58. package/docs/functions/Util.getFrameTime.html +5 -5
  59. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  60. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  61. package/docs/functions/Util.isNil.html +5 -5
  62. package/docs/functions/Util.nextFrame.html +5 -5
  63. package/docs/functions/Util.notNil.html +5 -5
  64. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  65. package/docs/functions/Util.tweenProgress.html +5 -5
  66. package/docs/functions/pluginFlag.html +5 -5
  67. package/docs/index.html +4 -4
  68. package/docs/interfaces/AddTagConfig.html +6 -6
  69. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  70. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  71. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  72. package/docs/interfaces/EventMap.html +15 -15
  73. package/docs/interfaces/FloorplanBounding.html +8 -8
  74. package/docs/interfaces/FloorplanData.html +10 -10
  75. package/docs/interfaces/FloorplanEntrance.html +11 -11
  76. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  77. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  78. package/docs/interfaces/FloorplanFloorData.html +9 -9
  79. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  80. package/docs/interfaces/FloorplanObserver.html +9 -9
  81. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  82. package/docs/interfaces/FloorplanPosition.html +7 -7
  83. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  84. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  85. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  86. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  87. package/docs/interfaces/FloorplanServerData.html +7 -7
  88. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  89. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  90. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  91. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  92. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  94. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  95. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  96. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  97. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  98. package/docs/interfaces/HelperOffset.html +8 -8
  99. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  100. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  101. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  102. package/docs/interfaces/MinMax.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  104. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  105. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  106. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  107. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  108. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  110. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  111. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  112. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  113. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  114. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  115. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  116. package/docs/interfaces/Object3DHelperState.html +8 -8
  117. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  118. package/docs/interfaces/PaintBrushAction.html +12 -12
  119. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  120. package/docs/interfaces/PaintBrushState.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  123. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  124. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  125. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  126. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  127. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  128. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  129. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  130. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  131. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  132. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  133. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  134. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  135. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  136. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  137. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  138. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  139. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  140. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  141. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  142. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  143. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  144. package/docs/interfaces/Point.html +8 -8
  145. package/docs/interfaces/Room.html +9 -9
  146. package/docs/interfaces/RoomInfo.html +7 -7
  147. package/docs/interfaces/RoomLabel.html +14 -14
  148. package/docs/interfaces/RoomRules.html +5 -5
  149. package/docs/interfaces/Rooms.html +5 -5
  150. package/docs/interfaces/Scissor.html +9 -9
  151. package/docs/interfaces/State.html +8 -8
  152. package/docs/interfaces/TagCache.html +12 -12
  153. package/docs/interfaces/TagConfig.html +10 -10
  154. package/docs/interfaces/TagIconUrl.html +9 -9
  155. package/docs/interfaces/Tags.html +9 -9
  156. package/docs/interfaces/TemporaryState.html +6 -6
  157. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  158. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  159. package/docs/modules/Util.html +5 -5
  160. package/docs/modules.html +4 -4
  161. package/docs/types/ArrayPosition.html +5 -5
  162. package/docs/types/AudioAppearance.html +5 -5
  163. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  164. package/docs/types/CSS3DRenderExportType.html +5 -5
  165. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  166. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  167. package/docs/types/ClassFunctionParameters.html +5 -5
  168. package/docs/types/Color.html +5 -5
  169. package/docs/types/ContentTypeConfigKey.html +5 -5
  170. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  171. package/docs/types/ContentTypeMap.html +5 -5
  172. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  173. package/docs/types/Create3DElementReturnType.html +5 -5
  174. package/docs/types/CruisePluginExportType.html +5 -5
  175. package/docs/types/Direction-1.html +5 -5
  176. package/docs/types/Direction4.html +5 -5
  177. package/docs/types/FloorplanRuleLabels.html +5 -5
  178. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  179. package/docs/types/GuideLinePluginExportType.html +5 -5
  180. package/docs/types/HelperEventMap.html +5 -5
  181. package/docs/types/LoadTagConfig.html +5 -5
  182. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  183. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  184. package/docs/types/MediaData.html +5 -5
  185. package/docs/types/MediaStore.html +5 -5
  186. package/docs/types/ModelElement.html +5 -5
  187. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  188. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  189. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  190. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  191. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  192. package/docs/types/MoveArgs.html +5 -5
  193. package/docs/types/MoveOpts.html +5 -5
  194. package/docs/types/Object3DHelperEventMap.html +5 -5
  195. package/docs/types/ObjectFit.html +5 -5
  196. package/docs/types/PaintBrushEventMap.html +5 -5
  197. package/docs/types/PanoCompassPluginData.html +5 -5
  198. package/docs/types/PanoCompassPluginExportType.html +5 -5
  199. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  200. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  201. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  202. package/docs/types/PanoIndex.html +5 -5
  203. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  204. package/docs/types/PanoMeasureReturnType.html +5 -5
  205. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  206. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  207. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  208. package/docs/types/PlaneTag.html +5 -5
  209. package/docs/types/PlaneTagElement.html +5 -5
  210. package/docs/types/Point2DElement.html +5 -5
  211. package/docs/types/Point2DTag.html +5 -5
  212. package/docs/types/Point3DElement.html +5 -5
  213. package/docs/types/Point3DTag.html +5 -5
  214. package/docs/types/PointTag.html +5 -5
  215. package/docs/types/PointTagElement.html +5 -5
  216. package/docs/types/Position.html +5 -5
  217. package/docs/types/RotateArgs.html +5 -5
  218. package/docs/types/RotateOpts.html +5 -5
  219. package/docs/types/RuleLabelsKey.html +5 -5
  220. package/docs/types/RuleLabelsValue.html +5 -5
  221. package/docs/types/StickType.html +5 -5
  222. package/docs/types/Tag.html +5 -5
  223. package/docs/types/Tag2D.html +5 -5
  224. package/docs/types/Tag3D.html +5 -5
  225. package/docs/types/TagContentType.html +5 -5
  226. package/docs/types/TagDimensionType.html +5 -5
  227. package/docs/types/TagElement.html +5 -5
  228. package/docs/types/TagEvents.html +5 -5
  229. package/docs/types/TagGLTFObject.html +5 -5
  230. package/docs/types/TagHooks.html +5 -5
  231. package/docs/types/TagIconSize.html +5 -5
  232. package/docs/types/TagId.html +5 -5
  233. package/docs/types/TagPointType.html +5 -5
  234. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  235. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  236. package/docs/types/WorkCode.html +5 -5
  237. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  238. package/docs/variables/PLUGIN.html +5 -5
  239. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  240. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  241. package/docs/variables/VERSION.html +5 -5
  242. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  243. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  244. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  245. package/libs/PanoTagPlugin/controller/index.js +100 -100
  246. package/libs/PanoTagPlugin/tag.config.js +1 -0
  247. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6423,13 +6423,13 @@ const ff = `<style type="text/css">
6423
6423
  X.style.display = "none";
6424
6424
  continue;
6425
6425
  }
6426
- const de = V.clone().project(v), ue = (de.x + 1) / 2 * E, me = (-de.y + 1) / 2 * L, Ee = P.clone().project(v), Me = (Ee.x + 1) / 2 * E, Re = (-Ee.y + 1) / 2 * L, ae = Math.sqrt(Math.pow(Me - ue, 2) + Math.pow(Re - me, 2));
6426
+ const de = V.clone().project(v), ue = (de.x + 1) / 2 * E, me = (-de.y + 1) / 2 * L, Ee = P.clone().project(v), Me = (Ee.x + 1) / 2 * E, Oe = (-Ee.y + 1) / 2 * L, ae = Math.sqrt(Math.pow(Me - ue, 2) + Math.pow(Oe - me, 2));
6427
6427
  let ve = ae, we = 50;
6428
6428
  const ce = c({ x: ~~ue, y: ~~me }, {
6429
6429
  x: ~~Me,
6430
- y: ~~Re
6430
+ y: ~~Oe
6431
6431
  }, E, L);
6432
- if (ce && ce.length === 1 && (D === V ? (ve = Math.sqrt(Math.pow(ce[0].x - ue, 2) + Math.pow(ce[0].y - me, 2)), we = ve / ae * 50) : D === P && (ve = Math.sqrt(Math.pow(ce[0].x - Me, 2) + Math.pow(ce[0].y - Re, 2)), we = 100 - ve / ae * 50)), ce && ce.length === 2) {
6432
+ if (ce && ce.length === 1 && (D === V ? (ve = Math.sqrt(Math.pow(ce[0].x - ue, 2) + Math.pow(ce[0].y - me, 2)), we = ve / ae * 50) : D === P && (ve = Math.sqrt(Math.pow(ce[0].x - Me, 2) + Math.pow(ce[0].y - Oe, 2)), we = 100 - ve / ae * 50)), ce && ce.length === 2) {
6433
6433
  const mt = {
6434
6434
  x: (ce[0].x + ce[1].x) / 2,
6435
6435
  y: (ce[0].y + ce[1].y) / 2
@@ -6438,7 +6438,7 @@ const ff = `<style type="text/css">
6438
6438
  Math.pow(mt.x - ue, 2) + Math.pow(mt.y - me, 2)
6439
6439
  ) / ae * 100;
6440
6440
  }
6441
- const Lt = (Math.PI / 2 - Math.atan2(Me - ue, me - Re)) / Math.PI * 180, ge = R.querySelector(".PanoRulerPlugin-rule-label"), ht = ge.children[0].clientWidth;
6441
+ const Lt = (Math.PI / 2 - Math.atan2(Me - ue, me - Oe)) / Math.PI * 180, ge = R.querySelector(".PanoRulerPlugin-rule-label"), ht = ge.children[0].clientWidth;
6442
6442
  ht >= ae || ht / 2 >= we / 100 * ae || ht / 2 >= (1 - we / 100) * ae ? R.style.display = "none" : (R.style.display = "block", R.style.width = ae + "px", R.style.left = ue + "px", R.style.top = me + "px", R.style.transform = `rotate(${-Lt}deg)`, ge.style.left = `${we}%`);
6443
6443
  }
6444
6444
  }, u = () => Oa(d), f = () => {
@@ -6717,7 +6717,7 @@ function Cf(i, t, e) {
6717
6717
  var ue, me;
6718
6718
  const X = H.start, V = H.end, { startLeft: P, startTop: R, distance: O, deg: W, visible: Y, labelOffset: N, ruleLength: U } = u(new Z(X[0], -X[1], -X[2]), new Z(V[0], -V[1], -V[2]), B), de = [];
6719
6719
  return H.children && ((ue = H.children) == null ? void 0 : ue.length) > 0 && ((me = H.children) == null || me.forEach((Ee) => {
6720
- const Me = Ee.start, Re = Ee.end, { distance: ae } = d(new Z(Me[0], -Me[1], -Me[2]), new Z(Re[0], -Re[1], -Re[2]));
6720
+ const Me = Ee.start, Oe = Ee.end, { distance: ae } = d(new Z(Me[0], -Me[1], -Me[2]), new Z(Oe[0], -Oe[1], -Oe[2]));
6721
6721
  de.push({ width: ae, state: Ee.state });
6722
6722
  })), {
6723
6723
  width: O,
@@ -9274,7 +9274,7 @@ class Qh {
9274
9274
  }
9275
9275
  }
9276
9276
  const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/PanoSpatialTagPlugin__blur.png", Sv = (i, t) => {
9277
- var N, U, de, ue, me, Ee, Me, Re;
9277
+ var N, U, de, ue, me, Ee, Me, Oe;
9278
9278
  let e = t == null ? void 0 : t.container, n = 1.4;
9279
9279
  const o = (N = t == null ? void 0 : t.wait) != null ? N : 200, s = (U = t == null ? void 0 : t.maxNumberOnScreen) != null ? U : 3, r = (de = t == null ? void 0 : t.minRad) != null ? de : Math.PI / 4, a = (ue = t == null ? void 0 : t.nearTolerance) != null ? ue : 100, l = (me = t == null ? void 0 : t.upsideHeight) != null ? me : 1.6, c = (Ee = t == null ? void 0 : t.minDistance) != null ? Ee : 1.2, d = (Me = t == null ? void 0 : t.maxDistance) != null ? Me : 3.5, u = En(i), f = document.createElement("div");
9280
9280
  f.classList.add("PanoSpatialTagPlugin"), Object.assign(f.style, zh);
@@ -9361,16 +9361,16 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
9361
9361
  ), tt.setFromProjectionMatrix(Lt);
9362
9362
  const ht = A.tags.filter(
9363
9363
  (Te) => tt.containsPoint(Te.position) && !Te.destroying
9364
- ).length, mt = A.points.reduce((Te, Oe) => {
9365
- if (A.tags.find((Be) => Oe.id === Be.id && !Be.destroying))
9364
+ ).length, mt = A.points.reduce((Te, He) => {
9365
+ if (A.tags.find((Be) => He.id === Be.id && !Be.destroying))
9366
9366
  return Te;
9367
- const Ue = ce.position.clone().setY(n).distanceTo(Oe.position);
9368
- if (Ue < c || Ue > d || !tt.containsPoint(Oe.position))
9367
+ const Ue = ce.position.clone().setY(n).distanceTo(He.position);
9368
+ if (Ue < c || Ue > d || !tt.containsPoint(He.position))
9369
9369
  return Te;
9370
- const tn = Oe.position.clone().sub(ce.position).setY(0);
9371
- if (tn.angleTo(Oe.normal) > Math.PI / 2 - r && tn.angleTo(Oe.normal) < Math.PI / 2 + r)
9370
+ const tn = He.position.clone().sub(ce.position).setY(0);
9371
+ if (tn.angleTo(He.normal) > Math.PI / 2 - r && tn.angleTo(He.normal) < Math.PI / 2 + r)
9372
9372
  return Te;
9373
- const Ft = Oe.position.clone().project(ce);
9373
+ const Ft = He.position.clone().project(ce);
9374
9374
  if (!A.tags.every((Be) => {
9375
9375
  if (Be.position.clone().sub(ce.position).setY(0).angleTo(ge.setY(0)) > Math.PI / 2)
9376
9376
  return !0;
@@ -9381,11 +9381,11 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
9381
9381
  }))
9382
9382
  return Te;
9383
9383
  const St = {
9384
- id: Oe.id,
9385
- position: Oe.position,
9386
- normal: Oe.normal,
9387
- replacement: Oe.replacement,
9388
- weight: Oe.weight,
9384
+ id: He.id,
9385
+ position: He.position,
9386
+ normal: He.normal,
9387
+ replacement: He.replacement,
9388
+ weight: He.weight,
9389
9389
  distance: Ue
9390
9390
  };
9391
9391
  let Pe;
@@ -9402,7 +9402,7 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
9402
9402
  }
9403
9403
  return Pe !== void 0 ? Te.splice(Pe, 0, St) : Te.push(St), Te;
9404
9404
  }, []);
9405
- for (let Te = 0, Oe = mt.length; Te < Oe && !(ht + we.length >= s); Te++) {
9405
+ for (let Te = 0, He = mt.length; Te < He && !(ht + we.length >= s); Te++) {
9406
9406
  const Ue = mt[Te];
9407
9407
  if (we.find((Pe) => Ue.id === Pe.id))
9408
9408
  continue;
@@ -9496,7 +9496,7 @@ const Si = 1e-3, Vs = 0.01, Rh = "https://vrlab-image4.ljcdn.com/release/web/Pan
9496
9496
  ae.app.$destroy(), ae = null;
9497
9497
  }), A.origins = [], A.tags = [], i.off("modelLoaded", W), i.off("renderFrame", I), i.off("panoWillArrive", y), i.off("panoArrived", w), i.off("modeChange", C), i.off("cameraUpdate", v), i.off("dispose", Y), window.removeEventListener("resize", O, !1);
9498
9498
  };
9499
- return window.addEventListener("resize", O, !1), (Re = i == null ? void 0 : i.model) != null && Re.loaded ? W() : i.once("modelLoaded", W), i.on("dispose", Y), {
9499
+ return window.addEventListener("resize", O, !1), (Oe = i == null ? void 0 : i.model) != null && Oe.loaded ? W() : i.once("modelLoaded", W), i.on("dispose", Y), {
9500
9500
  load: D,
9501
9501
  setIntersectObjects: B,
9502
9502
  unfoldAll: X,
@@ -10256,7 +10256,7 @@ function lm(i, t, e) {
10256
10256
  const W = R.camera.position.clone(), Y = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), N = Y.distanceTo(W);
10257
10257
  return d !== void 0 && R.state.mode === je.Mode.Panorama && N > d ? !1 : Fs(R, Y.clone().sub(W).normalize(), W, N);
10258
10258
  }, y = (R) => {
10259
- const { camera: O, model: W } = s, { x: Y, y: N, z: U } = R.clone().project(O), de = (Y + 1) / 2, ue = (2 - (N + 1)) / 2, Me = Math.abs(U) < 1 && [de, ue].every((Re) => Re < 1 && Re >= 0);
10259
+ const { camera: O, model: W } = s, { x: Y, y: N, z: U } = R.clone().project(O), de = (Y + 1) / 2, ue = (2 - (N + 1)) / 2, Me = Math.abs(U) < 1 && [de, ue].every((Oe) => Oe < 1 && Oe >= 0);
10260
10260
  return Boolean(Me);
10261
10261
  }, C = (R, O) => {
10262
10262
  const W = new o(O.modelPosition[0], O.modelPosition[1], O.modelPosition[2]), Y = R.project2d(W), N = Y == null ? void 0 : Y.x, U = Y == null ? void 0 : Y.y;
@@ -11733,7 +11733,7 @@ function Jm(i) {
11733
11733
  function Zm(i) {
11734
11734
  return i.stickType === "3DPoint" || i.stickType === "Plane";
11735
11735
  }
11736
- function He(i) {
11736
+ function Re(i) {
11737
11737
  return i.stickType === "Model" && i.contentType === "MediaModel";
11738
11738
  }
11739
11739
  function Ji(i) {
@@ -11746,7 +11746,7 @@ function Ji(i) {
11746
11746
  function $s(i) {
11747
11747
  if (Jm(i))
11748
11748
  return ot(i == null ? void 0 : i.position);
11749
- if (He(i) && i.matrix) {
11749
+ if (Re(i) && i.matrix) {
11750
11750
  const t = new an().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new Z().fromArray(n).applyMatrix4(t));
11751
11751
  return no(e[0], e[2]);
11752
11752
  } else
@@ -16291,7 +16291,7 @@ function X0(i, t, e) {
16291
16291
  }
16292
16292
  function w(C, I, E) {
16293
16293
  var L, D;
16294
- return !(!I.visible || !I.enabled || !E.visible || !((L = C.state) != null && L.visible) || ((D = C.temporaryState) == null ? void 0 : D.visible) === !1 || He(C) && C.mediaVisible === !1);
16294
+ return !(!I.visible || !I.enabled || !E.visible || !((L = C.state) != null && L.visible) || ((D = C.temporaryState) == null ? void 0 : D.visible) === !1 || Re(C) && C.mediaVisible === !1);
16295
16295
  }
16296
16296
  const y = (C) => u.emit("click", { event: C, target: "TagContent", tag: d });
16297
16297
  return i.$$set = (C) => {
@@ -16778,6 +16778,7 @@ const cA = {
16778
16778
  },
16779
16779
  visibleConfig: {
16780
16780
  keep: "visible",
16781
+ visibleFiveMode: ["Panorama", "Floorplan", "Model", "Mapview"],
16781
16782
  alwaysShowWhenMovePano: !0
16782
16783
  }
16783
16784
  }
@@ -16833,7 +16834,7 @@ class uA extends dA {
16833
16834
  getVisibleByPanoIndex(e, n) {
16834
16835
  var r;
16835
16836
  const o = this.getCache({ panoIndex: n, id: e.id }), s = (r = this.five.panoIndex) != null ? r : n;
16836
- if (He(e))
16837
+ if (Re(e))
16837
16838
  return !0;
16838
16839
  if (o.visible !== void 0)
16839
16840
  return o.visible;
@@ -17083,7 +17084,7 @@ class uA extends dA {
17083
17084
  }
17084
17085
  setModelMedialVisibleByPanoIndex() {
17085
17086
  this.tags.forEach((e) => {
17086
- if (!He(e))
17087
+ if (!Re(e))
17087
17088
  return;
17088
17089
  const n = this.getModelMedialVisibleByPanoIndex(e);
17089
17090
  e.mediaVisible = n;
@@ -17132,9 +17133,9 @@ class uA extends dA {
17132
17133
  getTagEnableByIntersect(e, n) {
17133
17134
  var d, u, f;
17134
17135
  const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, s = this.getDistance(e), [r] = this.five.model.intersectRaycaster(n), a = (() => {
17135
- if (!He(e))
17136
+ if (!Re(e))
17136
17137
  return;
17137
- const h = this.tags.filter(He).map((A) => {
17138
+ const h = this.tags.filter(Re).map((A) => {
17138
17139
  var g;
17139
17140
  return (g = A.model) == null ? void 0 : g.object;
17140
17141
  }).filter(_e);
@@ -17225,12 +17226,12 @@ class gA extends uA {
17225
17226
  m(this, "handleFiveInitAnimationEnded", () => {
17226
17227
  const e = this.five.getCurrentState().mode;
17227
17228
  this.tags.forEach((n) => {
17228
- n.state.visible = this.getVisible(n), He(n) && e === "Panorama" && this.changeTagMode(n, "front");
17229
+ n.state.visible = this.getVisible(n), Re(n) && e === "Panorama" && this.changeTagMode(n, "front");
17229
17230
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
17230
17231
  });
17231
17232
  m(this, "handleFiveModelShownFloorChange", () => {
17232
17233
  this.tags.forEach((e) => {
17233
- !He(e) || (e.state.visible = this.checkFloorIndex(e));
17234
+ !Re(e) || (e.state.visible = this.checkFloorIndex(e));
17234
17235
  }), this.updateRenderAllTags();
17235
17236
  });
17236
17237
  m(this, "loadModel", (e) => _(this, null, function* () {
@@ -17275,7 +17276,7 @@ class gA extends uA {
17275
17276
  clickable: a.clickable,
17276
17277
  mergedConfig: a
17277
17278
  });
17278
- return He(r) && (l.temporaryState = { visible: !1 }), l;
17279
+ return Re(r) && (l.temporaryState = { visible: !1 }), l;
17279
17280
  }).filter((r) => r.position);
17280
17281
  return s.forEach(fA), this.tags.push(...s), qm(this.five).then(() => {
17281
17282
  var r, a, l;
@@ -17371,7 +17372,7 @@ class gA extends uA {
17371
17372
  const o = (v = (g = (A = e.mergedConfig) == null ? void 0 : A.tag3DConfig) == null ? void 0 : g.ratio) != null ? v : 216e-5, s = (w = e.tag3DContentSvelte) == null ? void 0 : w.domContainer.css3DObject;
17372
17373
  if (!s)
17373
17374
  return;
17374
- const r = He(e) ? e.data.mediaPosition : e.position;
17375
+ const r = Re(e) ? e.data.mediaPosition : e.position;
17375
17376
  n.updateWorldMatrix(!1, !1);
17376
17377
  const a = n.matrixWorld, l = new Z().fromArray(r[0]), c = new Z().fromArray(r[2]), d = new Z().lerpVectors(l, c, 0.5).add(new Z(0, 0, 5e-4)), u = new an().setPosition(d), f = new an().makeScale(o, o, o), h = new an().multiply(a).multiply(u).multiply(f);
17377
17378
  h.decompose(s.position, s.quaternion, s.scale);
@@ -17443,7 +17444,7 @@ class gA extends uA {
17443
17444
  }
17444
17445
  handleFiveModeChange(e) {
17445
17446
  this.tags.forEach((n) => {
17446
- n.state.visible = this.getVisible(n), He(n) && e !== "Panorama" && this.changeTagMode(n, "behind");
17447
+ n.state.visible = this.getVisible(n), Re(n) && e !== "Panorama" && this.changeTagMode(n, "behind");
17447
17448
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
17448
17449
  }
17449
17450
  handleFiveWantsMoveToPano() {
@@ -17528,46 +17529,46 @@ class gA extends uA {
17528
17529
  }
17529
17530
  updateRenderPlaneTag() {
17530
17531
  this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((n) => {
17531
- var o;
17532
+ var o, s, r;
17532
17533
  if (n.tag3DContentSvelte) {
17533
- const { svelteApp: s, domContainer: r, initialNormal: a, currentNormal: l } = n.tag3DContentSvelte;
17534
- if (s.$set({
17534
+ const { svelteApp: a, domContainer: l, initialNormal: c, currentNormal: d } = n.tag3DContentSvelte;
17535
+ if (a.$set({
17535
17536
  tag: n,
17536
17537
  hooks: this.hooks,
17537
17538
  state: this.state,
17538
17539
  temporaryState: this.temporaryState
17539
- }), !a.equals(l)) {
17540
- const c = new oa().setFromUnitVectors(a, l);
17541
- r.css3DObject.setRotationFromQuaternion(c);
17540
+ }), !c.equals(d)) {
17541
+ const u = new oa().setFromUnitVectors(c, d);
17542
+ l.css3DObject.setRotationFromQuaternion(u);
17542
17543
  }
17543
17544
  } else {
17544
17545
  if (((o = n.state) == null ? void 0 : o.visible) === !1)
17545
17546
  return;
17546
17547
  if (this.css3DRenderPlugin || (this.css3DRenderPlugin = En(this.five)), n.stickType === "3DPoint" && !n.normal)
17547
17548
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
17548
- const s = (() => n.stickType === "Plane" ? n.position : He(n) ? n.data.mediaPosition : Km(
17549
+ const a = (() => n.stickType === "Plane" ? n.position : Re(n) ? n.data.mediaPosition : Km(
17549
17550
  this.five.camera.position,
17550
17551
  ot(n.position),
17551
17552
  ot(n.normal)
17552
17553
  ))();
17553
- if (!s)
17554
+ if (!a)
17554
17555
  return;
17555
- const r = function() {
17556
+ const l = function() {
17556
17557
  if (n.normal)
17557
17558
  return ot(n.normal);
17558
17559
  if (n.stickType === "Plane")
17559
17560
  return Ui(n.position);
17560
17561
  if (n.contentType === "MediaModel")
17561
- return Ui(s);
17562
+ return Ui(a);
17562
17563
  }();
17563
- if (!r)
17564
- return;
17565
- const a = this.getTagConfig(n).tag3DConfig, l = this.css3DRenderPlugin.create3DDomContainer(s, a);
17566
17564
  if (!l)
17567
17565
  return;
17568
- this.store.css3DRenderDisposer.set(n.id, l.dispose), n.tag3DContentSvelte = {
17566
+ const c = this.getTagConfig(n).tag3DConfig, d = this.css3DRenderPlugin.create3DDomContainer(a, c);
17567
+ if (!d)
17568
+ return;
17569
+ this.store.css3DRenderDisposer.set(n.id, d.dispose), n.tag3DContentSvelte = {
17569
17570
  svelteApp: new Al({
17570
- target: l.container,
17571
+ target: d.container,
17571
17572
  props: {
17572
17573
  tag: n,
17573
17574
  hooks: this.hooks,
@@ -17576,16 +17577,16 @@ class gA extends uA {
17576
17577
  temporaryState: this.temporaryState
17577
17578
  }
17578
17579
  }),
17579
- domContainer: l,
17580
- initialNormal: r,
17581
- currentNormal: r
17582
- };
17580
+ domContainer: d,
17581
+ initialNormal: l,
17582
+ currentNormal: l
17583
+ }, Re(n) && ((s = n.model) == null ? void 0 : s.object) && this.updateTagCss3DObjectMatrix(n, (r = n.model) == null ? void 0 : r.object);
17583
17584
  }
17584
17585
  }), this.checkPanelTag();
17585
17586
  }
17586
17587
  updateRenderModelTag() {
17587
17588
  const e = (o) => !this.enabledModelTagSet.has(o.customID);
17588
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(He).forEach((o) => {
17589
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(Re).forEach((o) => {
17589
17590
  var s;
17590
17591
  (s = o.model) == null || s.promise.then((r) => {
17591
17592
  r.visible = o.state.visible;
@@ -17609,7 +17610,7 @@ class gA extends uA {
17609
17610
  }
17610
17611
  addMediaModelTag(e) {
17611
17612
  return _(this, null, function* () {
17612
- const n = e.filter(He).map(this.loadModel);
17613
+ const n = e.filter(Re).map(this.loadModel);
17613
17614
  yield Promise.all(n), this.five.getCurrentState().mode === "Panorama" && this.setModelMedialVisibleByPanoIndex(), this.updateRenderAllTags();
17614
17615
  });
17615
17616
  }