@realsee/dnalogel 4.0.0-webgpu.23 → 4.0.0-webgpu.24

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 (64) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/floorplan.js +1 -1
  3. package/dist/index.js +15 -15
  4. package/dist/internal/{BasePlugin-CyIOsFYu.js → BasePlugin-Bb3IIdoT.js} +2 -2
  5. package/dist/internal/{BasePlugin-CyIOsFYu.js.map → BasePlugin-Bb3IIdoT.js.map} +1 -1
  6. package/dist/internal/BasePluginWithData-DhoOfulA.js +7 -0
  7. package/dist/internal/{BasePluginWithData-C695ak0f.js.map → BasePluginWithData-DhoOfulA.js.map} +1 -1
  8. package/dist/internal/{Controller-u_YXsLO9.js → Controller-BUhEyr_1.js} +2 -2
  9. package/dist/internal/{Controller-u_YXsLO9.js.map → Controller-BUhEyr_1.js.map} +1 -1
  10. package/dist/internal/{Controller-D_jIu_2f.js → Controller-DzfK4n2o.js} +13 -7
  11. package/dist/internal/Controller-DzfK4n2o.js.map +1 -0
  12. package/dist/internal/{Rectangle-DnfNhPeK.js → Rectangle-D44t_X8L.js} +2 -2
  13. package/dist/internal/{Rectangle-DnfNhPeK.js.map → Rectangle-D44t_X8L.js.map} +1 -1
  14. package/dist/internal/{Work-Dr2jlwDU.js → Work-OoUrI19X.js} +4 -4
  15. package/dist/internal/{Work-Dr2jlwDU.js.map → Work-OoUrI19X.js.map} +1 -1
  16. package/dist/internal/{area-maker-DEPIpfh3.js → area-maker-BW2_j-va.js} +2 -2
  17. package/dist/internal/{area-maker-DEPIpfh3.js.map → area-maker-BW2_j-va.js.map} +1 -1
  18. package/dist/internal/{controller-DZBHeaIZ.js → controller-F8kgNmEQ.js} +3 -3
  19. package/dist/internal/{controller-DZBHeaIZ.js.map → controller-F8kgNmEQ.js.map} +1 -1
  20. package/dist/internal/{cruise-C8sxx4Nf.js → cruise-CsjeQ3OF.js} +2 -2
  21. package/dist/internal/{cruise-C8sxx4Nf.js.map → cruise-CsjeQ3OF.js.map} +1 -1
  22. package/dist/internal/{current-pano-image-B2jQBJxM.js → current-pano-image-Do03xL7z.js} +2 -2
  23. package/dist/internal/{current-pano-image-B2jQBJxM.js.map → current-pano-image-Do03xL7z.js.map} +1 -1
  24. package/dist/internal/{floorplan-BKdZKkST.js → floorplan-DcI1Gyz0.js} +2 -2
  25. package/dist/internal/{floorplan-BKdZKkST.js.map → floorplan-DcI1Gyz0.js.map} +1 -1
  26. package/dist/internal/{model-maker-B5vc0AfD.js → model-maker-DAGEF_ix.js} +2 -2
  27. package/dist/internal/{model-maker-B5vc0AfD.js.map → model-maker-DAGEF_ix.js.map} +1 -1
  28. package/dist/internal/object3d-helper-R0q5geJ-.js +7 -0
  29. package/dist/internal/{object3d-helper-D-5-lpwJ.js.map → object3d-helper-R0q5geJ-.js.map} +1 -1
  30. package/dist/internal/{pano-compass-Cjycki6z.js → pano-compass-DF_vSVH-.js} +2 -2
  31. package/dist/internal/{pano-compass-Cjycki6z.js.map → pano-compass-DF_vSVH-.js.map} +1 -1
  32. package/dist/internal/{pano-door-label-BIxAGYd7.js → pano-door-label-B73e_xf3.js} +2 -2
  33. package/dist/internal/{pano-door-label-BIxAGYd7.js.map → pano-door-label-B73e_xf3.js.map} +1 -1
  34. package/dist/internal/{pano-measure-B0ZsVugF.js → pano-measure-BnjDR7qa.js} +2 -2
  35. package/dist/internal/{pano-measure-B0ZsVugF.js.map → pano-measure-BnjDR7qa.js.map} +1 -1
  36. package/dist/internal/{pano-measure-v2-CZ_dqqmY.js → pano-measure-v2-BlHSj_-V.js} +2 -2
  37. package/dist/internal/{pano-measure-v2-CZ_dqqmY.js.map → pano-measure-v2-BlHSj_-V.js.map} +1 -1
  38. package/dist/internal/{pano-tag-Co-wEnsN.js → pano-tag-ClPgQcdR.js} +2 -2
  39. package/dist/internal/{pano-tag-Co-wEnsN.js.map → pano-tag-ClPgQcdR.js.map} +1 -1
  40. package/dist/internal/{pano-video-hRsGiN-d.js → pano-video-BZrcErqF.js} +2 -2
  41. package/dist/internal/{pano-video-hRsGiN-d.js.map → pano-video-BZrcErqF.js.map} +1 -1
  42. package/dist/internal/{pipeline-toLCkwqv.js → pipeline-B46LsAp7.js} +2 -2
  43. package/dist/internal/{pipeline-toLCkwqv.js.map → pipeline-B46LsAp7.js.map} +1 -1
  44. package/dist/internal/{sculpt-BGYkaTC3.js → sculpt-DMtL0ECo.js} +2 -2
  45. package/dist/internal/{sculpt-BGYkaTC3.js.map → sculpt-DMtL0ECo.js.map} +1 -1
  46. package/dist/plugins/area-maker.js +1 -1
  47. package/dist/plugins/cruise.js +2 -2
  48. package/dist/plugins/current-pano-image.js +1 -1
  49. package/dist/plugins/guide-line.js +1 -1
  50. package/dist/plugins/model-maker.js +1 -1
  51. package/dist/plugins/object3d-helper.js +2 -2
  52. package/dist/plugins/pano-compass.js +1 -1
  53. package/dist/plugins/pano-door-label.js +1 -1
  54. package/dist/plugins/pano-measure-v2.js +1 -1
  55. package/dist/plugins/pano-measure.js +1 -1
  56. package/dist/plugins/pano-tag.js +2 -2
  57. package/dist/plugins/pano-video.js +1 -1
  58. package/dist/plugins/pipeline.js +1 -1
  59. package/dist/plugins/sculpt.js +2 -2
  60. package/dist/types/PanoMeasurePlugin/utils/dom/distanceItem.d.ts +2 -0
  61. package/package.json +1 -1
  62. package/dist/internal/BasePluginWithData-C695ak0f.js +0 -7
  63. package/dist/internal/Controller-D_jIu_2f.js.map +0 -1
  64. package/dist/internal/object3d-helper-D-5-lpwJ.js +0 -7
@@ -10,7 +10,7 @@ import { n as m, t as h } from "./isNil-CQNA0Sbe.js";
10
10
  import { t as g } from "./uuid-BfVaI9vM.js";
11
11
  import { n as _, t as v } from "./tween.esm-CJDtohfp.js";
12
12
  import { i as y } from "./animationFrame-CacKXN8l.js";
13
- import { t as b } from "./BasePlugin-CyIOsFYu.js";
13
+ import { t as b } from "./BasePlugin-Bb3IIdoT.js";
14
14
  import { C as x, G as S, J as C, K as w, L as T, M as E, N as ee, O as te, P as D, Q as O, R as k, S as ne, U as A, V as j, W as re, X as M, Y as N, Z as ie, _ as ae, b as oe, d as se, et as ce, it as P, j as F, k as le, l as I, m as L, n as R, o as z, p as B, q as ue, rt as V, st as H, t as de, x as fe, z as U } from "./component.svelte-D5LYqt50.js";
15
15
  import { n as pe, t as me } from "./safeObj-ic96Cf8D.js";
16
16
  import { t as he } from "./FiveLine-0OtX3RDV.js";
@@ -137,6 +137,7 @@ var Qe = class {
137
137
  modelOcclusion = !1;
138
138
  raycaster = new Ee();
139
139
  line;
140
+ lastVisibleAngle;
140
141
  lastFOV;
141
142
  cameraUpdateHandler = null;
142
143
  constructor(e) {
@@ -169,8 +170,11 @@ var Qe = class {
169
170
  }
170
171
  return this;
171
172
  }
173
+ hide() {
174
+ this.lastVisibleAngle = void 0, super.hide();
175
+ }
172
176
  remove() {
173
- if (this.cameraUpdateHandler) {
177
+ if (this.lastVisibleAngle = void 0, this.cameraUpdateHandler) {
174
178
  let e = this.getFiveInstance();
175
179
  e && (e.off("cameraUpdate", this.cameraUpdateHandler), e.off("cameraFovUpdate", this.cameraUpdateHandler), e.off("panoArrived", this.onPanoChange)), this.cameraUpdateHandler = null;
176
180
  }
@@ -197,13 +201,15 @@ var Qe = class {
197
201
  }
198
202
  let g = u.distanceTo(e.camera.position), _ = e.camera.fov || 60, v = 2 * Math.tan(.5 * _ / 180 * Math.PI), y = Math.max(Math.min(1 - v * g / 40, 1), 0);
199
203
  this.contentDom.style.setProperty("--distance-scale", y.toString());
200
- let b = (f.x + 1) / 2 * n, x = -(f.y - 1) / 2 * r, S = -(Math.atan((p.y - m.y) / (p.x - m.x)) * 180) / Math.PI, C = this.containerDom.parentElement && this.contentDom.clientWidth > h ? -20 : 0;
201
- this.containerDom.style.transform = `translate(${b}px, ${x}px) rotate(${S}deg) translateY(${C}px)`, this.show(), this.params.userDistanceItem?.update({
204
+ let b = (f.x + 1) / 2 * n, x = -(f.y - 1) / 2 * r, S = -(Math.atan((p.y - m.y) / (p.x - m.x)) * 180) / Math.PI, C = S + Math.round(((this.lastVisibleAngle ?? S) - S) / 180) * 180;
205
+ this.lastVisibleAngle = C;
206
+ let w = this.containerDom.parentElement && this.contentDom.clientWidth > h ? -20 : 0;
207
+ this.containerDom.style.transform = `translate(${b}px, ${x}px) rotate(${C}deg) translateY(${w}px)`, this.show(), this.params.userDistanceItem?.update({
202
208
  line: this.line,
203
209
  polyline: this.line.getPolyline()
204
210
  });
205
- let w = this.getCurrentContent();
206
- this.contentDom.innerText = w;
211
+ let T = this.getCurrentContent();
212
+ this.contentDom.innerText = T;
207
213
  }
208
214
  isOccluded(e, t) {
209
215
  if (!e.model.loaded) return !1;
@@ -2517,4 +2523,4 @@ var _n = {
2517
2523
  //#endregion
2518
2524
  export { Q as a, vt as i, $ as n, X as o, wt as r, Y as s, xn as t };
2519
2525
 
2520
- //# sourceMappingURL=Controller-D_jIu_2f.js.map
2526
+ //# sourceMappingURL=Controller-DzfK4n2o.js.map