@rr0/ufoathome 0.175.0 → 0.177.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 (73) hide show
  1. package/dist-embed-interview/rr0-interview.mjs +9 -6
  2. package/dist-embed-scene/{BeamEditor-lqfhEk0b.js → BeamEditor-zq64GorX.js} +1 -1
  3. package/dist-embed-scene/{LanternEditor-B70H4IHX.js → LanternEditor-2q5seAWj.js} +1 -1
  4. package/dist-embed-scene/{LaunchEditor-DnOCC18Z.js → LaunchEditor-Cupksu8A.js} +1 -1
  5. package/dist-embed-scene/{ParameterForm-B4kpfmg7.js → ParameterForm-BMIW4Gkh.js} +5 -5
  6. package/dist-embed-scene/{ReentryEditor-CAoYGTuQ.js → ReentryEditor-DJO_M-8-.js} +1 -1
  7. package/{dist-embed-sighting/TimelineTracks-Cl54dXfV.js → dist-embed-scene/TimelineTracks-B-bXAaF7.js} +1 -1
  8. package/dist-embed-scene/rr0-scene.mjs +318 -292
  9. package/dist-embed-scene/sightingSchema-BfOYR_OD.js +1 -0
  10. package/dist-embed-sighting/{AdsbLolArchiveProvider-CcD8HBKE.js → AdsbLolArchiveProvider-DK4qEYPv.js} +1 -1
  11. package/dist-embed-sighting/{BallesterGuaspAssessor-C3AZoSYJ.js → BallesterGuaspAssessor-FGskpWWG.js} +1 -1
  12. package/dist-embed-sighting/{BeamEditor-DhVematZ.js → BeamEditor-BglkfKa6.js} +1 -1
  13. package/dist-embed-sighting/{BeamSystem-B4to8Pi-.js → BeamSystem-DDtPjozC.js} +1 -1
  14. package/dist-embed-sighting/CaseMessages_en-DEyvxYxv.js +1 -0
  15. package/dist-embed-sighting/CaseMessages_es-DDsQ93tK.js +1 -0
  16. package/dist-embed-sighting/CaseMessages_fr-DoHbDEkG.js +1 -0
  17. package/dist-embed-sighting/CaseMessages_it-CF8sKknV.js +1 -0
  18. package/dist-embed-sighting/{ContrailSystem-DOuG7PiJ.js → ContrailSystem-DXV0DnrQ.js} +1 -1
  19. package/dist-embed-sighting/{Flightradar24Provider-Dpx8D7Mq.js → Flightradar24Provider-Ch4GdVJG.js} +1 -1
  20. package/dist-embed-sighting/GLTFLoader-BDyucwJ-.js +1 -0
  21. package/dist-embed-sighting/HeadlightSystem-DGUfgm2c.js +34 -0
  22. package/dist-embed-sighting/HynekAssessor-Cb8mZ9Ib.js +1 -0
  23. package/dist-embed-sighting/InterviewElement-Byb_sxbO.js +38 -0
  24. package/dist-embed-sighting/InterviewMessages_en-BNau2xU8.js +1 -0
  25. package/dist-embed-sighting/InterviewMessages_es-ypa0EDh9.js +1 -0
  26. package/dist-embed-sighting/InterviewMessages_fr-OCQdwn9j.js +1 -0
  27. package/dist-embed-sighting/InterviewMessages_it-awuOqf5v.js +1 -0
  28. package/dist-embed-sighting/{LanternEditor-DV_09Orv.js → LanternEditor-CaZ1JhZS.js} +1 -1
  29. package/dist-embed-sighting/{LaserBeam-DWr9CljY.js → LaserBeam-DkKFSSp_.js} +1 -1
  30. package/dist-embed-sighting/LaunchEditor-QRG2uHH8.js +22 -0
  31. package/dist-embed-sighting/LaunchPlume-DBINBQgQ.js +1 -0
  32. package/dist-embed-sighting/{LaunchSimulation-CUoqmEUv.js → LaunchSimulation-DUvH6_BB.js} +1 -1
  33. package/dist-embed-sighting/{ModuleSession-C0IGrROR.js → ModuleSession-GzfQ8_LE.js} +3 -3
  34. package/dist-embed-sighting/ModuleThree-tnKi-oul.js +1 -0
  35. package/dist-embed-sighting/{NearestApproach-Dm99M0L8.js → NearestApproach-BeKwz4vK.js} +1 -1
  36. package/dist-embed-sighting/{ParameterForm-DHI22UeD.js → ParameterForm-DW6cQmYI.js} +12 -15
  37. package/dist-embed-sighting/{PoherAssessor-BUqWHdc2.js → PoherAssessor-JLqDISRf.js} +1 -1
  38. package/dist-embed-sighting/{RailwaySystem-Bb0sdKJq.js → RailwaySystem-BfTJvmf3.js} +1 -1
  39. package/dist-embed-sighting/{ReentryEditor-MvS7QLW_.js → ReentryEditor-BHgPXlx3.js} +6 -6
  40. package/dist-embed-sighting/ReentrySimulation-C3BR2hs3.js +1 -0
  41. package/dist-embed-sighting/{ReferenceSystem-CK13CXoG.js → ReferenceSystem-B5diz1Lt.js} +1 -1
  42. package/dist-embed-sighting/{RoadMarkings-DiBAmqci.js → RoadMarkings-Dv3xdtFG.js} +1 -1
  43. package/dist-embed-sighting/{SceneNames_en-Cy3_acfm.js → SceneNames_en-BbQ55UYu.js} +1 -1
  44. package/dist-embed-sighting/{SceneNames_es-VxS6QttN.js → SceneNames_es-DsJpGSDK.js} +1 -1
  45. package/dist-embed-sighting/{SceneNames_fr-Dg8Zgkb7.js → SceneNames_fr-CKr5m8QL.js} +1 -1
  46. package/dist-embed-sighting/{SceneNames_it-Cf-I4HxZ.js → SceneNames_it-qSw1j95v.js} +1 -1
  47. package/dist-embed-sighting/{SightingMessages_en-BjIUyT4W.js → SightingMessages_en-DuokT218.js} +1 -1
  48. package/dist-embed-sighting/{SightingMessages_es-TueslN1u.js → SightingMessages_es-JO8WQ1_V.js} +1 -1
  49. package/dist-embed-sighting/{SightingMessages_fr-Dfp6mAcU.js → SightingMessages_fr-3C2RZVNA.js} +1 -1
  50. package/dist-embed-sighting/{SightingMessages_it-C0VvJY01.js → SightingMessages_it-BEMBUACg.js} +1 -1
  51. package/{dist-embed-scene/TimelineTracks-BMdiUSuh.js → dist-embed-sighting/TimelineTracks-XzShW15O.js} +2 -2
  52. package/dist-embed-sighting/{TraceSystem-Br5X73bm.js → TraceSystem-XybhI4uJ.js} +2 -2
  53. package/dist-embed-sighting/UfoMessages_en-CoSqGYwb.js +1 -0
  54. package/dist-embed-sighting/{WaterSystem-B1eVrX5D.js → WaterSystem-CcLIPQfy.js} +1 -1
  55. package/dist-embed-sighting/rr0-sighting.mjs +464 -337
  56. package/dist-embed-sighting/sightingSchema-BfOYR_OD.js +1 -0
  57. package/dist-embed-sighting/{trafficRuntime-eDpxCSB0.js → trafficRuntime-BAuwwA-Z.js} +1 -1
  58. package/dist-embed-sighting-editor/{InterviewEditorElement-HpLlL2F7.js → InterviewEditorElement-44XFadV4.js} +16 -13
  59. package/dist-embed-sighting-editor/{SightingFileEditor-CASP3L_i.js → SightingFileEditor-CnKF2ndt.js} +1 -1
  60. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +385 -359
  61. package/dist-embed-sighting-editor/sightingSchema-9xw8srxN.js +1 -0
  62. package/package.json +1 -1
  63. package/dist-embed-scene/sightingSchema-BqAGojjT.js +0 -1
  64. package/dist-embed-sighting/GLTFLoader-BbUDci9q.js +0 -1
  65. package/dist-embed-sighting/HeadlightSystem-B2L7iVgs.js +0 -34
  66. package/dist-embed-sighting/HynekAssessor-BNn-J5RL.js +0 -1
  67. package/dist-embed-sighting/LaunchEditor-CB_nUoqA.js +0 -22
  68. package/dist-embed-sighting/LaunchPlume-C83k71p6.js +0 -1
  69. package/dist-embed-sighting/ModuleThree-CIiYBmMI.js +0 -1
  70. package/dist-embed-sighting/ReentrySimulation-DniDRt4s.js +0 -1
  71. package/dist-embed-sighting/UfoMessages_en-Bau9u8Mz.js +0 -1
  72. package/dist-embed-sighting/sightingSchema-BqAGojjT.js +0 -1
  73. package/dist-embed-sighting-editor/sightingSchema-DbcXsOHL.js +0 -1
@@ -1 +1 @@
1
- import{G as O,i as w,C as A,j as R,k as M,m as v,n as D,o as F,F as L}from"./rr0-sighting.mjs";class r{static LIFT_M=.05;static RENDER_ORDER=1.04;static LEVEL_QUANTILE=.2;static BODY_ALBEDO=[.035,.045,.04];static IOR=1.33;static ROUGHNESS=.08;static MAX_SAMPLES=48;group=new O;material=new w({color:new A(...r.BODY_ALBEDO),roughness:r.ROUGHNESS,metalness:0,ior:r.IOR,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});constructor(){this.group.name="water"}set(s,e,n,p,t,o){this.clear();for(const l of s){const f=l.rings.map(i=>r.clip(i.map(h=>R(h.lat,h.lng,e,n)),t)),a=f[0];if(!a||a.length<3)continue;const g=f.slice(1).filter(i=>i.length>=3),u=r.level(a,g,p,o);if(u===void 0)continue;const c=r.geometry(a,g,u+r.LIFT_M);if(!c)continue;const x=new M(c,this.material);x.name=`water ${l.id}`,x.renderOrder=r.RENDER_ORDER,x.receiveShadow=!0,this.group.add(x)}}get count(){return this.group.children.length}clear(){for(const s of[...this.group.children])s.geometry.dispose(),this.group.remove(s)}dispose(){this.clear(),this.material.dispose()}static level(s,e,n,p){const t=s.map(i=>i.x),o=s.map(i=>i.z),[l,f,a,g]=[Math.min(...t),Math.max(...t),Math.min(...o),Math.max(...o)],u=Math.max(p,(f-l)/r.MAX_SAMPLES,(g-a)/r.MAX_SAMPLES,.5),c=[];for(let i=a+u/2;i<g;i+=u)for(let h=l+u/2;h<f;h+=u){const z={x:h,z:i};if(!r.contains(s,z)||e.some(m=>r.contains(m,z)))continue;const d=n(h,i);Number.isFinite(d)&&c.push(d)}if(c.length===0)for(const i of s)c.push(n(i.x,i.z));const x=c.filter(Number.isFinite).sort((i,h)=>i-h);if(x.length!==0)return x[Math.floor((x.length-1)*r.LEVEL_QUANTILE)]}static clip(s,e){let n=s;const p=[{inside:t=>t.x>=-e,cross:(t,o)=>r.atX(t,o,-e)},{inside:t=>t.x<=e,cross:(t,o)=>r.atX(t,o,e)},{inside:t=>t.z>=-e,cross:(t,o)=>r.atZ(t,o,-e)},{inside:t=>t.z<=e,cross:(t,o)=>r.atZ(t,o,e)}];for(const t of p){const o=[];for(let l=0;l<n.length;l++){const f=n[l],a=n[(l+n.length-1)%n.length];t.inside(f)?(t.inside(a)||o.push(t.cross(a,f)),o.push(f)):t.inside(a)&&o.push(t.cross(a,f))}if(n=o,n.length===0)break}return n}static atX(s,e,n){return{x:n,z:s.z+(e.z-s.z)*(n-s.x)/(e.x-s.x)}}static atZ(s,e,n){return{x:s.x+(e.x-s.x)*(n-s.z)/(e.z-s.z),z:n}}static contains(s,e){let n=!1;for(let p=0,t=s.length-1;p<s.length;t=p++){const o=s[p],l=s[t];o.z>e.z!=l.z>e.z&&e.x<(l.x-o.x)*(e.z-o.z)/(l.z-o.z)+o.x&&(n=!n)}return n}static geometry(s,e,n){const p=c=>new v(c.x,c.z),t=s.map(p),o=e.map(c=>c.map(p)),l=D.triangulateShape(t,o);if(l.length===0)return;const f=[...t,...o.flat()],a=[];for(const[c,x,i]of l){const[h,z,d]=[f[c],f[x],f[i]],m=(z.y-h.y)*(d.x-h.x)-(z.x-h.x)*(d.y-h.y)>0;for(const E of m?[h,z,d]:[h,d,z])a.push(E.x,n,E.y)}const g=new F;g.setAttribute("position",new L(a,3));const u=new Float32Array(a.length);for(let c=1;c<u.length;c+=3)u[c]=1;return g.setAttribute("normal",new L(u,3)),g.computeBoundingSphere(),g}}export{r as WaterSystem};
1
+ import{G as O,m as w,C as A,n as R,o as M,q as v,t as D,u as N,v as L}from"./rr0-sighting.mjs";class r{static LIFT_M=.05;static RENDER_ORDER=1.04;static LEVEL_QUANTILE=.2;static BODY_ALBEDO=[.035,.045,.04];static IOR=1.33;static ROUGHNESS=.08;static MAX_SAMPLES=48;group=new O;material=new w({color:new A(...r.BODY_ALBEDO),roughness:r.ROUGHNESS,metalness:0,ior:r.IOR,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});constructor(){this.group.name="water"}set(s,e,n,p,t,o){this.clear();for(const l of s){const f=l.rings.map(i=>r.clip(i.map(h=>R(h.lat,h.lng,e,n)),t)),a=f[0];if(!a||a.length<3)continue;const g=f.slice(1).filter(i=>i.length>=3),u=r.level(a,g,p,o);if(u===void 0)continue;const c=r.geometry(a,g,u+r.LIFT_M);if(!c)continue;const x=new M(c,this.material);x.name=`water ${l.id}`,x.renderOrder=r.RENDER_ORDER,x.receiveShadow=!0,this.group.add(x)}}get count(){return this.group.children.length}clear(){for(const s of[...this.group.children])s.geometry.dispose(),this.group.remove(s)}dispose(){this.clear(),this.material.dispose()}static level(s,e,n,p){const t=s.map(i=>i.x),o=s.map(i=>i.z),[l,f,a,g]=[Math.min(...t),Math.max(...t),Math.min(...o),Math.max(...o)],u=Math.max(p,(f-l)/r.MAX_SAMPLES,(g-a)/r.MAX_SAMPLES,.5),c=[];for(let i=a+u/2;i<g;i+=u)for(let h=l+u/2;h<f;h+=u){const z={x:h,z:i};if(!r.contains(s,z)||e.some(m=>r.contains(m,z)))continue;const d=n(h,i);Number.isFinite(d)&&c.push(d)}if(c.length===0)for(const i of s)c.push(n(i.x,i.z));const x=c.filter(Number.isFinite).sort((i,h)=>i-h);if(x.length!==0)return x[Math.floor((x.length-1)*r.LEVEL_QUANTILE)]}static clip(s,e){let n=s;const p=[{inside:t=>t.x>=-e,cross:(t,o)=>r.atX(t,o,-e)},{inside:t=>t.x<=e,cross:(t,o)=>r.atX(t,o,e)},{inside:t=>t.z>=-e,cross:(t,o)=>r.atZ(t,o,-e)},{inside:t=>t.z<=e,cross:(t,o)=>r.atZ(t,o,e)}];for(const t of p){const o=[];for(let l=0;l<n.length;l++){const f=n[l],a=n[(l+n.length-1)%n.length];t.inside(f)?(t.inside(a)||o.push(t.cross(a,f)),o.push(f)):t.inside(a)&&o.push(t.cross(a,f))}if(n=o,n.length===0)break}return n}static atX(s,e,n){return{x:n,z:s.z+(e.z-s.z)*(n-s.x)/(e.x-s.x)}}static atZ(s,e,n){return{x:s.x+(e.x-s.x)*(n-s.z)/(e.z-s.z),z:n}}static contains(s,e){let n=!1;for(let p=0,t=s.length-1;p<s.length;t=p++){const o=s[p],l=s[t];o.z>e.z!=l.z>e.z&&e.x<(l.x-o.x)*(e.z-o.z)/(l.z-o.z)+o.x&&(n=!n)}return n}static geometry(s,e,n){const p=c=>new v(c.x,c.z),t=s.map(p),o=e.map(c=>c.map(p)),l=D.triangulateShape(t,o);if(l.length===0)return;const f=[...t,...o.flat()],a=[];for(const[c,x,i]of l){const[h,z,d]=[f[c],f[x],f[i]],m=(z.y-h.y)*(d.x-h.x)-(z.x-h.x)*(d.y-h.y)>0;for(const E of m?[h,z,d]:[h,d,z])a.push(E.x,n,E.y)}const g=new N;g.setAttribute("position",new L(a,3));const u=new Float32Array(a.length);for(let c=1;c<u.length;c+=3)u[c]=1;return g.setAttribute("normal",new L(u,3)),g.computeBoundingSphere(),g}}export{r as WaterSystem};