@rubin-epo/epo-widget-lib 2.0.3 → 2.0.5

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 (68) hide show
  1. package/dist/SortableTable.cjs +1 -0
  2. package/dist/SortableTable.d.ts +3 -0
  3. package/dist/SortableTable.js +5 -0
  4. package/dist/SourceSelector.cjs +1 -1
  5. package/dist/SourceSelector.js +6 -4
  6. package/dist/atomic/Blinker/Blinker.cjs +1 -1
  7. package/dist/atomic/Blinker/Blinker.d.ts +1 -0
  8. package/dist/atomic/Blinker/Blinker.js +27 -25
  9. package/dist/atomic/SelectionList/index.cjs +1 -0
  10. package/dist/{widgets/SourceSelector → atomic}/SelectionList/index.d.ts +1 -1
  11. package/dist/atomic/SelectionList/index.js +31 -0
  12. package/dist/charts/Readout/index.cjs +1 -1
  13. package/dist/charts/Readout/index.js +18 -25
  14. package/dist/charts/ScatterPlot/index.cjs +1 -1
  15. package/dist/charts/ScatterPlot/index.js +50 -53
  16. package/dist/localeStrings/en/epo-widget-lib.json +11 -3
  17. package/dist/localeStrings/es/epo-widget-lib.json +8 -5
  18. package/dist/mock-data/OrbitalSim/index.d.ts +162 -0
  19. package/dist/widgets/OrbitalSim/Camera/Camera.cjs +1 -1
  20. package/dist/widgets/OrbitalSim/Camera/Camera.js +9 -8
  21. package/dist/widgets/OrbitalSim/Context/OrbitalSimContext.types.d.ts +12 -0
  22. package/dist/widgets/OrbitalSim/Context/index.cjs +1 -1
  23. package/dist/widgets/OrbitalSim/Context/index.d.ts +1 -1
  24. package/dist/widgets/OrbitalSim/Context/index.js +58 -32
  25. package/dist/widgets/OrbitalSim/OrbitalSim.cjs +1 -1
  26. package/dist/widgets/OrbitalSim/OrbitalSim.js +95 -78
  27. package/dist/widgets/OrbitalSim/Orbitals/Orbital.cjs +1 -1
  28. package/dist/widgets/OrbitalSim/Orbitals/Orbital.js +41 -41
  29. package/dist/widgets/OrbitalSim/Orbitals/OrbitalDetails.cjs +1 -1
  30. package/dist/widgets/OrbitalSim/Orbitals/OrbitalDetails.js +21 -23
  31. package/dist/widgets/OrbitalSim/Orbitals/Orbitals.cjs +1 -1
  32. package/dist/widgets/OrbitalSim/Orbitals/Orbitals.d.ts +2 -1
  33. package/dist/widgets/OrbitalSim/Orbitals/Orbitals.js +41 -40
  34. package/dist/widgets/OrbitalSim/orbitalUtilities.cjs +1 -1
  35. package/dist/widgets/OrbitalSim/orbitalUtilities.d.ts +65 -0
  36. package/dist/widgets/OrbitalSim/orbitalUtilities.js +100 -57
  37. package/dist/widgets/OrbitalSim/styles.cjs +33 -5
  38. package/dist/widgets/OrbitalSim/styles.d.ts +2 -0
  39. package/dist/widgets/OrbitalSim/styles.js +36 -6
  40. package/dist/widgets/SortableTable/SortableTable.cjs +1 -0
  41. package/dist/widgets/SortableTable/SortableTable.d.ts +19 -0
  42. package/dist/widgets/SortableTable/SortableTable.js +41 -0
  43. package/dist/widgets/SortableTable/index.d.ts +1 -0
  44. package/dist/widgets/SortableTable/styles.cjs +8 -0
  45. package/dist/widgets/SortableTable/styles.d.ts +1 -0
  46. package/dist/widgets/SortableTable/styles.js +13 -0
  47. package/dist/widgets/SourceSelector/MovingSourceMap/index.cjs +1 -0
  48. package/dist/widgets/SourceSelector/MovingSourceMap/index.d.ts +13 -0
  49. package/dist/widgets/SourceSelector/MovingSourceMap/index.js +42 -0
  50. package/dist/widgets/SourceSelector/MovingSourceMap/styles.cjs +14 -0
  51. package/dist/widgets/SourceSelector/MovingSourceMap/styles.d.ts +2 -0
  52. package/dist/widgets/SourceSelector/MovingSourceMap/styles.js +20 -0
  53. package/dist/widgets/SourceSelector/MovingSourceSelector.cjs +1 -0
  54. package/dist/widgets/SourceSelector/MovingSourceSelector.d.ts +24 -0
  55. package/dist/widgets/SourceSelector/MovingSourceSelector.js +119 -0
  56. package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
  57. package/dist/widgets/SourceSelector/SourceSelector.d.ts +1 -1
  58. package/dist/widgets/SourceSelector/SourceSelector.js +43 -42
  59. package/dist/widgets/SourceSelector/index.d.ts +2 -1
  60. package/dist/widgets/SourceSelector/mocks/index.d.ts +1 -0
  61. package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
  62. package/dist/widgets/SupernovaThreeVector/Skymap/index.js +39 -45
  63. package/package.json +1 -1
  64. package/dist/widgets/SourceSelector/SelectionList/index.cjs +0 -1
  65. package/dist/widgets/SourceSelector/SelectionList/index.js +0 -31
  66. /package/dist/{widgets/SourceSelector → atomic}/SelectionList/styles.cjs +0 -0
  67. /package/dist/{widgets/SourceSelector → atomic}/SelectionList/styles.d.ts +0 -0
  68. /package/dist/{widgets/SourceSelector → atomic}/SelectionList/styles.js +0 -0
@@ -0,0 +1,162 @@
1
+ export declare const SwappableOrbitsData: {
2
+ orbits: {
3
+ neos: {
4
+ a: number;
5
+ e: number;
6
+ i: number;
7
+ H: number;
8
+ Ref: string;
9
+ Principal_desig: string;
10
+ Translated_desig_key: string;
11
+ orbitColor: string;
12
+ objectColor: string;
13
+ objectRadius: number;
14
+ }[];
15
+ };
16
+ swappableOrbits: boolean;
17
+ };
18
+ export declare const PrimaryData: {
19
+ orbits: {
20
+ neos: {
21
+ NEO_flag: number;
22
+ One_km_NEO_flag: number;
23
+ H: number;
24
+ G: number;
25
+ Num_obs: number;
26
+ rms: number;
27
+ U: string;
28
+ Arc_years: string;
29
+ Perturbers: string;
30
+ Perturbers_2: string;
31
+ Number: string;
32
+ Name: string;
33
+ Principal_desig: string;
34
+ Epoch: number;
35
+ M: number;
36
+ Peri: number;
37
+ Node: number;
38
+ i: number;
39
+ e: number;
40
+ n: number;
41
+ a: number;
42
+ Ref: string;
43
+ Num_opps: number;
44
+ Computer: string;
45
+ Hex_flags: string;
46
+ Last_obs: string;
47
+ Tp: number;
48
+ Orbital_period: number;
49
+ Perihelion_dist: number;
50
+ Aphelion_dist: number;
51
+ Semilatus_rectum: number;
52
+ Synodic_period: number;
53
+ Orbit_type: string;
54
+ }[];
55
+ detailsRows: null;
56
+ };
57
+ activeObs: undefined;
58
+ selectionCallback: () => void;
59
+ paused: boolean;
60
+ pov: string;
61
+ defaultZoom: number;
62
+ potentialOrbits: null;
63
+ observations: null;
64
+ noDetails: boolean;
65
+ noControls: boolean;
66
+ detailsSet: null;
67
+ refObjs: string[];
68
+ noLabels: null;
69
+ };
70
+ export declare const PotentialOrbitsData: {
71
+ orbits: {
72
+ neos: ({
73
+ Node: number;
74
+ a: number;
75
+ e: number;
76
+ i: number;
77
+ Peri: number;
78
+ M: number;
79
+ Principal_desig: string;
80
+ Name: string;
81
+ Ref: string;
82
+ Epoch?: undefined;
83
+ } | {
84
+ Node: number;
85
+ a: number;
86
+ e: number;
87
+ i: number;
88
+ Peri: number;
89
+ M: number;
90
+ Epoch: string;
91
+ Principal_desig?: undefined;
92
+ Name?: undefined;
93
+ Ref?: undefined;
94
+ })[];
95
+ activeNeo: null;
96
+ activeObs: undefined;
97
+ selectionCallback: () => void;
98
+ paused: null;
99
+ pov: null;
100
+ defaultZoom: number;
101
+ potentialOrbits: boolean;
102
+ observations: ({
103
+ id: string;
104
+ label: string;
105
+ interactable: boolean;
106
+ isActive: boolean;
107
+ position: number;
108
+ isAnswer?: undefined;
109
+ } | {
110
+ id: string;
111
+ label: string;
112
+ interactable: boolean;
113
+ isActive: boolean;
114
+ position: number;
115
+ isAnswer: boolean;
116
+ })[];
117
+ detailsRows: null;
118
+ };
119
+ showTimeControls: boolean;
120
+ allowOrbitRotation: boolean;
121
+ noDetails: null;
122
+ detailsSet: null;
123
+ refObjs: null;
124
+ noLabels: null;
125
+ };
126
+ export declare const ObjectDetailsData: {
127
+ orbits: {
128
+ neos: {
129
+ H: number;
130
+ Principal_desig: string;
131
+ M: number;
132
+ Peri: number;
133
+ Node: number;
134
+ i: number;
135
+ e: number;
136
+ n: number;
137
+ a: number;
138
+ Ref: string;
139
+ Orbit_type: string;
140
+ diameter: number;
141
+ Earth_moid: number;
142
+ Jupiter_moid: number;
143
+ }[];
144
+ detailsRows: {
145
+ rowColor: string;
146
+ rowTitle: string;
147
+ rowContent: string;
148
+ }[];
149
+ };
150
+ showTimeControls: boolean;
151
+ showDetailsTable: boolean;
152
+ activeObs: undefined;
153
+ selectionCallback: () => void;
154
+ paused: null;
155
+ pov: null;
156
+ defaultZoom: null;
157
+ potentialOrbits: null;
158
+ observations: null;
159
+ detailsSet: string;
160
+ refObjs: null;
161
+ noLabels: null;
162
+ };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("react"),n=require("../../../node_modules/prop-types/index.cjs"),i=require("@react-three/fiber");function o({...r}){const e=u.useRef();return u.useEffect(()=>{const t=e.current;t.zoom=r.defaultZoom,t.updateProjectionMatrix()},[]),i.useFrame(()=>{e.current.updateMatrixWorld()}),a.jsx("orthographicCamera",{ref:e,...r,makeDefault:!0,zoom:100})}o.propTypes={defaultZoom:n.default.number};exports.default=o;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react/jsx-runtime"),u=require("react"),i=require("../../../node_modules/prop-types/index.cjs"),n=require("@react-three/fiber"),c=require("@react-three/drei");function o({...r}){const e=u.useRef();return u.useEffect(()=>{const t=e.current;t.zoom=r.defaultZoom,t.updateProjectionMatrix()},[]),n.useFrame(()=>{e.current.updateMatrixWorld()}),a.jsx(c.OrthographicCamera,{ref:e,...r,makeDefault:!0})}o.propTypes={defaultZoom:i.default.number};exports.default=o;
@@ -3,18 +3,19 @@ import { jsx as t } from "react/jsx-runtime";
3
3
  import { useRef as m, useEffect as a } from "react";
4
4
  import u from "../../../node_modules/prop-types/index.js";
5
5
  import { useFrame as f } from "@react-three/fiber";
6
- function p({ ...r }) {
7
- const e = m();
6
+ import { OrthographicCamera as p } from "@react-three/drei";
7
+ function i({ ...e }) {
8
+ const r = m();
8
9
  return a(() => {
9
- const o = e.current;
10
- o.zoom = r.defaultZoom, o.updateProjectionMatrix();
10
+ const o = r.current;
11
+ o.zoom = e.defaultZoom, o.updateProjectionMatrix();
11
12
  }, []), f(() => {
12
- e.current.updateMatrixWorld();
13
- }), /* @__PURE__ */ t("orthographicCamera", { ref: e, ...r, makeDefault: !0, zoom: 100 });
13
+ r.current.updateMatrixWorld();
14
+ }), /* @__PURE__ */ t(p, { ref: r, ...e, makeDefault: !0 });
14
15
  }
15
- p.propTypes = {
16
+ i.propTypes = {
16
17
  defaultZoom: u.number
17
18
  };
18
19
  export {
19
- p as default
20
+ i as default
20
21
  };
@@ -3,13 +3,23 @@ import { ReactNode } from 'react';
3
3
  export interface OrbitalSimProviderProps {
4
4
  children: ReactNode;
5
5
  orbitData: Orbits;
6
+ showDetailsTable?: boolean;
7
+ allowOrbitRotation?: boolean;
8
+ showTimeControls?: boolean;
9
+ selectedAnswer: string | null;
10
+ updateSelectedAnswer: (newSelectedAnswer: string | null) => void;
11
+ swappableOrbits?: boolean;
6
12
  }
7
13
  export type OrbitalSimContextValues = {
8
14
  orbits: Orbits;
15
+ showDetailsTable?: boolean;
16
+ allowOrbitRotation?: boolean;
17
+ showTimeControls?: boolean;
9
18
  setOrbits: React.Dispatch<React.SetStateAction<Orbits>>;
10
19
  observations: Observation[];
11
20
  setObservations: React.Dispatch<React.SetStateAction<Observation[]>>;
12
21
  updateActiveObservation: (activeId: string) => void;
22
+ swappableOrbits: boolean;
13
23
  };
14
24
  export type Observation = {
15
25
  id: string;
@@ -25,6 +35,8 @@ export type Neo = {
25
35
  i: number;
26
36
  Peri: number;
27
37
  Node: number;
38
+ Ref: string;
39
+ Principal_desig: string;
28
40
  };
29
41
  export type DetailsRow = {
30
42
  rowTitle: string;
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react/jsx-runtime"),e=require("react"),a=e.createContext(null);function O(){const o=e.useContext(a);if(!o)throw new Error("OrbitalSim components cannot be rendered outside the OrbitalSimContext.Provider component.");return o}function d({children:o,orbitData:s}){const[i,r]=e.useState({neos:null,activeNeo:null,observations:[],paused:!1,pov:null,defaultZoom:null,potentialOrbits:!1,noDetails:!1,detailsRows:null,refObjs:null,noControls:!1}),[t,n]=e.useState(()=>i.observations??[]);e.useEffect(()=>{r(s),n(s.observations)},[s]);const u=b=>{if(t&&t.length>0){let v=t.map(l=>l.id==b?{...l,isActive:!0}:{...l,isActive:!1});n(v)}},c=e.useMemo(()=>({orbits:i,setOrbits:r,observations:t,setObservations:n,updateActiveObservation:u}),[i,r,t,n,u]);return m.jsx(a.Provider,{value:c,children:o})}exports.OrbitalSimContext=a;exports.OrbitalSimProvider=d;exports.useOrbitalSimContext=O;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("react/jsx-runtime"),t=require("react"),b=t.createContext(null);function P(){const o=t.useContext(b);if(!o)throw new Error("OrbitalSim components cannot be rendered outside the OrbitalSimContext.Provider component.");return o}function g({children:o,orbitData:u,showDetailsTable:v=!1,allowOrbitRotation:m=!1,showTimeControls:O=!1,selectedAnswer:i,updateSelectedAnswer:x,swappableOrbits:d=!1}){const[a,c]=t.useState({neos:null,activeNeo:null,observations:[],paused:!1,pov:null,defaultZoom:null,potentialOrbits:!1,noDetails:!1,detailsRows:null,refObjs:null,noControls:!1}),[e,n]=t.useState(()=>a.observations??[]);t.useEffect(()=>{c(u),n(u.observations)},[u]),t.useEffect(()=>{if(e&&e.length>0){let l=e.map(r=>({...r,isActive:r.label===i}));n(l)}},[i]);const S=l=>{if(e&&e.length>0){let r=e.map(s=>s.id==l?{...s,isActive:!0}:{...s,isActive:!1});n(r);const f=e.find(s=>s.id===l);x((f==null?void 0:f.label)||null)}},p=t.useMemo(()=>({orbits:a,showDetailsTable:v,allowOrbitRotation:m,showTimeControls:O,setOrbits:c,observations:e,setObservations:n,updateActiveObservation:S,selectedAnswer:i,swappableOrbits:d}),[a,v,m,O,c,e,n,S,i,d]);return C.jsx(b.Provider,{value:p,children:o})}exports.OrbitalSimContext=b;exports.OrbitalSimProvider=g;exports.useOrbitalSimContext=P;
@@ -27,4 +27,4 @@ export declare function useOrbitalSimContext(): OrbitalSimContextValues;
27
27
  *
28
28
  * @returns
29
29
  */
30
- export declare function OrbitalSimProvider({ children, orbitData }: OrbitalSimProviderProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function OrbitalSimProvider({ children, orbitData, showDetailsTable, allowOrbitRotation, showTimeControls, selectedAnswer, updateSelectedAnswer, swappableOrbits }: OrbitalSimProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,17 +1,26 @@
1
1
  "use client";
2
- import { jsx as f } from "react/jsx-runtime";
3
- import { createContext as m, useState as a, useEffect as d, useMemo as O, useContext as p } from "react";
4
- const u = m(null);
5
- function S() {
6
- const t = p(u);
7
- if (!t)
2
+ import { jsx as P } from "react/jsx-runtime";
3
+ import { createContext as g, useState as p, useEffect as O, useMemo as h, useContext as j } from "react";
4
+ const x = g(null);
5
+ function M() {
6
+ const o = j(x);
7
+ if (!o)
8
8
  throw new Error(
9
9
  "OrbitalSim components cannot be rendered outside the OrbitalSimContext.Provider component."
10
10
  );
11
- return t;
11
+ return o;
12
12
  }
13
- function w({ children: t, orbitData: n }) {
14
- const [s, i] = a({
13
+ function N({
14
+ children: o,
15
+ orbitData: r,
16
+ showDetailsTable: c = !1,
17
+ allowOrbitRotation: m = !1,
18
+ showTimeControls: v = !1,
19
+ selectedAnswer: s,
20
+ updateSelectedAnswer: S,
21
+ swappableOrbits: b = !1
22
+ }) {
23
+ const [u, a] = p({
15
24
  neos: null,
16
25
  activeNeo: null,
17
26
  observations: [],
@@ -23,34 +32,51 @@ function w({ children: t, orbitData: n }) {
23
32
  detailsRows: null,
24
33
  refObjs: null,
25
34
  noControls: !1
26
- }), [e, o] = a(
27
- () => s.observations ?? []
35
+ }), [t, e] = p(
36
+ () => u.observations ?? []
28
37
  );
29
- d(() => {
30
- i(n), o(n.observations);
31
- }, [n]);
32
- const l = (v) => {
33
- if (e && e.length > 0) {
34
- let b = e.map((r) => r.id == v ? { ...r, isActive: !0 } : { ...r, isActive: !1 });
35
- o(b);
38
+ O(() => {
39
+ a(r), e(r.observations);
40
+ }, [r]), O(() => {
41
+ if (t && t.length > 0) {
42
+ let l = t.map((i) => ({ ...i, isActive: i.label === s }));
43
+ e(l);
36
44
  }
37
- }, c = O(() => ({
38
- orbits: s,
39
- setOrbits: i,
40
- observations: e,
41
- setObservations: o,
42
- updateActiveObservation: l
45
+ }, [s]);
46
+ const d = (l) => {
47
+ if (t && t.length > 0) {
48
+ let i = t.map((n) => n.id == l ? { ...n, isActive: !0 } : { ...n, isActive: !1 });
49
+ e(i);
50
+ const f = t.find((n) => n.id === l);
51
+ S((f == null ? void 0 : f.label) || null);
52
+ }
53
+ }, C = h(() => ({
54
+ orbits: u,
55
+ showDetailsTable: c,
56
+ allowOrbitRotation: m,
57
+ showTimeControls: v,
58
+ setOrbits: a,
59
+ observations: t,
60
+ setObservations: e,
61
+ updateActiveObservation: d,
62
+ selectedAnswer: s,
63
+ swappableOrbits: b
43
64
  }), [
44
- s,
45
- i,
65
+ u,
66
+ c,
67
+ m,
68
+ v,
69
+ a,
70
+ t,
46
71
  e,
47
- o,
48
- l
72
+ d,
73
+ s,
74
+ b
49
75
  ]);
50
- return /* @__PURE__ */ f(u.Provider, { value: c, children: t });
76
+ return /* @__PURE__ */ P(x.Provider, { value: C, children: o });
51
77
  }
52
78
  export {
53
- u as OrbitalSimContext,
54
- w as OrbitalSimProvider,
55
- S as useOrbitalSimContext
79
+ x as OrbitalSimContext,
80
+ N as OrbitalSimProvider,
81
+ M as useOrbitalSimContext
56
82
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("react"),R=require("./Orbitals/OrbitalDetails.cjs"),T=require("./Camera/CameraController.cjs"),E=require("./Camera/Camera.cjs"),F=require("./Orbitals/Orbitals.cjs"),M=require("./Sun.cjs"),V=require("./Controls/PlaybackSpeed.cjs"),W=require("./Controls/PlaybackControls.cjs"),m=require("./styles.cjs"),_=require("./Context/index.cjs");function G(){const{orbits:q}=_.useOrbitalSimContext(),{paused:l,pov:y,defaultZoom:n,potentialOrbits:S,noDetails:O,noControls:g=!1}=q,u={min:1157e-8,max:365.25,initial:11.574,step:1},[r,a]=t.useState(!l),[v,o]=t.useState(1),[C,p]=t.useState(0),[b,x]=t.useState(l?0:u.initial),[j,c]=t.useState(0),[i,d]=t.useState(0),[h,D]=t.useState(1);t.useEffect(()=>{i>0?(x(u.initial),o(1),c(0),d(-1)):i<0&&(c(0),a(!0),d(0))},[i]);const P=s=>{x(+s)},Z=()=>{r||o(1),a(!r)},k=()=>{a(s=>!1),d(s=>s+1)},z=s=>{a(!1),o(1),p(f=>f+1)},L=s=>{a(!1),o(-1),p(f=>f+1)};return e.jsxs(e.Fragment,{children:[e.jsx(m.GlobalStyles,{}),e.jsxs(m.OrbitalSimWrapper,{children:[!S&&!O&&e.jsx(R.default,{}),!l&&e.jsx(V.default,{elapsedTime:j,dayPerVizSec:b,speeds:u,sliderOnChangeCallback:P}),!g&&e.jsx(W.default,{playing:r,handleStartStop:Z,handleNext:z,handlePrevious:L,isDisabled:!1,handleReset:k}),e.jsxs(m.CanvasWrapper,{orthographic:!0,children:[e.jsx(T.default,{pov:y,reset:i}),e.jsx(E.default,{left:5e3,right:15e3,top:15e3,bottom:-15e3,near:.1,far:3e4,position:[0,0,8e3],defaultZoom:n||1}),e.jsx("ambientLight",{intensity:.9}),e.jsx(F.default,{defaultZoom:n||1,playing:r,stepDirection:v,dayPerVizSec:b,frameOverride:C,potentialOrbits:S,elapsedTime:j,setElapsedTime:c,reset:i,zoomLevel:h,setZoomLevel:D}),e.jsx(M.default,{zoomLevel:h,defaultZoom:n||1})]})]})]})}exports.default=G;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),s=require("react"),M=require("./Orbitals/OrbitalDetails.cjs"),V=require("./Camera/CameraController.cjs"),W=require("./Camera/Camera.cjs"),B=require("./Orbitals/Orbitals.cjs"),G=require("./Sun.cjs"),N=require("./Controls/PlaybackSpeed.cjs"),A=require("./Controls/PlaybackControls.cjs"),l=require("./styles.cjs"),H=require("./Context/index.cjs");function I(){const{orbits:i,showDetailsTable:q,allowOrbitRotation:v,showTimeControls:m,swappableOrbits:x}=H.useOrbitalSimContext(),{paused:h,pov:y,defaultZoom:c,potentialOrbits:w,detailsRows:P}=i,u={min:1157e-8,max:365.25,initial:11.574,step:1},[n,a]=s.useState(!h),[D,o]=s.useState(1),[R,j]=s.useState(0),[O,d]=s.useState(h?0:u.initial),[g,p]=s.useState(0),[r,b]=s.useState(0),[C,k]=s.useState(1),[f,T]=s.useState({neos:[{Principal_desig:""}]});s.useEffect(()=>{m||(a(!1),d(0)),r>0?(d(u.initial),o(1),p(0),b(-1)):r<0&&(p(0),a(!0),b(0))},[r]);const Z=t=>{d(+t)},_=()=>{n||o(1),a(!n)},F=()=>{a(t=>!1),b(t=>t+1)},z=t=>{a(!1),o(1),j(S=>S+1)},L=t=>{a(!1),o(-1),j(S=>S+1)},E=t=>{T({neos:[t]})};return e.jsxs(e.Fragment,{children:[e.jsx(l.GlobalStyles,{}),e.jsxs(l.OrbitalSimWrapper,{children:[x?e.jsx(l.SwappableOrbitsContainer,{children:i&&i.neos&&i.neos.map(t=>e.jsx(l.SwappableOrbitButton,{onClick:()=>E(t),"data-active":Object.keys(f).length?t.Principal_desig===f.neos[0].Principal_desig:!1,children:t.Ref}))}):e.jsxs(e.Fragment,{children:[P&&q&&e.jsx(M.default,{}),m&&e.jsxs(e.Fragment,{children:[e.jsx(N.default,{elapsedTime:g,dayPerVizSec:O,speeds:u,sliderOnChangeCallback:Z}),e.jsx(A.default,{playing:n,handleStartStop:_,handleNext:z,handlePrevious:L,isDisabled:!1,handleReset:F})]})]}),e.jsxs(l.CanvasWrapper,{orthographic:!0,children:[e.jsx(V.default,{pov:v?null:y??"top",reset:r}),e.jsx(W.default,{left:-15e3,right:15e3,top:15e3,bottom:-15e3,near:.1,far:3e4,position:[0,0,8e3],defaultZoom:c||1}),e.jsx("ambientLight",{intensity:.9}),e.jsx(B.default,{defaultZoom:c||1,playing:n,stepDirection:D,dayPerVizSec:O,frameOverride:R,potentialOrbits:w,elapsedTime:g,setElapsedTime:p,reset:r,zoomLevel:C,setZoomLevel:k,orbits:x?f:i}),e.jsx(G.default,{zoomLevel:C,defaultZoom:c||1})]})]})]})}exports.default=I;
@@ -1,97 +1,114 @@
1
1
  "use client";
2
- import { jsxs as d, Fragment as k, jsx as e } from "react/jsx-runtime";
3
- import { useState as t, useEffect as z } from "react";
4
- import L from "./Orbitals/OrbitalDetails.js";
5
- import R from "./Camera/CameraController.js";
6
- import j from "./Camera/Camera.js";
7
- import E from "./Orbitals/Orbitals.js";
8
- import F from "./Sun.js";
9
- import N from "./Controls/PlaybackSpeed.js";
10
- import T from "./Controls/PlaybackControls.js";
11
- import { GlobalStyles as V, OrbitalSimWrapper as W, CanvasWrapper as G } from "./styles.js";
12
- import { useOrbitalSimContext as q } from "./Context/index.js";
13
- function ie() {
14
- const { orbits: v } = q(), {
15
- paused: l,
16
- pov: y,
17
- defaultZoom: n,
18
- potentialOrbits: h,
19
- noDetails: g,
20
- noControls: x = !1
21
- } = v, m = { min: 1157e-8, max: 365.25, initial: 11.574, step: 1 }, [a, i] = t(!l), [D, s] = t(1), [P, S] = t(0), [u, b] = t(l ? 0 : m.initial), [C, p] = t(0), [r, c] = t(0), [O, Z] = t(1);
22
- return z(() => {
23
- r > 0 ? (b(m.initial), s(1), p(0), c(-1)) : r < 0 && (p(0), i(!0), c(0));
24
- }, [r]), /* @__PURE__ */ d(k, { children: [
25
- /* @__PURE__ */ e(V, {}),
26
- /* @__PURE__ */ d(W, { children: [
27
- !h && !g && /* @__PURE__ */ e(L, {}),
28
- !l && /* @__PURE__ */ e(
29
- N,
2
+ import { jsxs as s, Fragment as h, jsx as t } from "react/jsx-runtime";
3
+ import { useState as i, useEffect as B } from "react";
4
+ import G from "./Orbitals/OrbitalDetails.js";
5
+ import N from "./Camera/CameraController.js";
6
+ import q from "./Camera/Camera.js";
7
+ import A from "./Orbitals/Orbitals.js";
8
+ import H from "./Sun.js";
9
+ import I from "./Controls/PlaybackSpeed.js";
10
+ import J from "./Controls/PlaybackControls.js";
11
+ import { GlobalStyles as K, OrbitalSimWrapper as M, SwappableOrbitsContainer as Q, SwappableOrbitButton as U, CanvasWrapper as X } from "./styles.js";
12
+ import { useOrbitalSimContext as Y } from "./Context/index.js";
13
+ function ce() {
14
+ const { orbits: a, showDetailsTable: P, allowOrbitRotation: D, showTimeControls: S, swappableOrbits: O } = Y(), {
15
+ paused: C,
16
+ pov: x,
17
+ defaultZoom: p,
18
+ potentialOrbits: k,
19
+ detailsRows: R
20
+ } = a, m = { min: 1157e-8, max: 365.25, initial: 11.574, step: 1 }, [l, o] = i(!C), [Z, n] = i(1), [T, g] = i(0), [w, c] = i(C ? 0 : m.initial), [v, d] = i(0), [r, f] = i(0), [y, j] = i(1), [b, z] = i({ neos: [{ Principal_desig: "" }] });
21
+ B(() => {
22
+ S || (o(!1), c(0)), r > 0 ? (c(m.initial), n(1), d(0), f(-1)) : r < 0 && (d(0), o(!0), f(0));
23
+ }, [r]);
24
+ const L = (e) => {
25
+ c(+e);
26
+ }, _ = () => {
27
+ l || n(1), o(!l);
28
+ }, E = () => {
29
+ o((e) => !1), f((e) => e + 1);
30
+ }, F = (e) => {
31
+ o(!1), n(1), g((u) => u + 1);
32
+ }, V = (e) => {
33
+ o(!1), n(-1), g((u) => u + 1);
34
+ }, W = (e) => {
35
+ z({
36
+ neos: [e]
37
+ });
38
+ };
39
+ return /* @__PURE__ */ s(h, { children: [
40
+ /* @__PURE__ */ t(K, {}),
41
+ /* @__PURE__ */ s(M, { children: [
42
+ O ? /* @__PURE__ */ t(Q, { children: a && a.neos && a.neos.map((e) => /* @__PURE__ */ t(
43
+ U,
30
44
  {
31
- elapsedTime: C,
32
- dayPerVizSec: u,
33
- speeds: m,
34
- sliderOnChangeCallback: (o) => {
35
- b(+o);
36
- }
37
- }
38
- ),
39
- !x && /* @__PURE__ */ e(
40
- T,
41
- {
42
- playing: a,
43
- handleStartStop: () => {
44
- a || s(1), i(!a);
45
- },
46
- handleNext: (o) => {
47
- i(!1), s(1), S((f) => f + 1);
48
- },
49
- handlePrevious: (o) => {
50
- i(!1), s(-1), S((f) => f + 1);
51
- },
52
- isDisabled: !1,
53
- handleReset: () => {
54
- i((o) => !1), c((o) => o + 1);
55
- }
45
+ onClick: () => W(e),
46
+ "data-active": Object.keys(b).length ? e.Principal_desig === b.neos[0].Principal_desig : !1,
47
+ children: e.Ref
56
48
  }
57
- ),
58
- /* @__PURE__ */ d(G, { orthographic: !0, children: [
59
- /* @__PURE__ */ e(R, { pov: y, reset: r }),
60
- /* @__PURE__ */ e(
61
- j,
49
+ )) }) : /* @__PURE__ */ s(h, { children: [
50
+ R && P && /* @__PURE__ */ t(G, {}),
51
+ S && /* @__PURE__ */ s(h, { children: [
52
+ /* @__PURE__ */ t(
53
+ I,
54
+ {
55
+ elapsedTime: v,
56
+ dayPerVizSec: w,
57
+ speeds: m,
58
+ sliderOnChangeCallback: L
59
+ }
60
+ ),
61
+ /* @__PURE__ */ t(
62
+ J,
63
+ {
64
+ playing: l,
65
+ handleStartStop: _,
66
+ handleNext: F,
67
+ handlePrevious: V,
68
+ isDisabled: !1,
69
+ handleReset: E
70
+ }
71
+ )
72
+ ] })
73
+ ] }),
74
+ /* @__PURE__ */ s(X, { orthographic: !0, children: [
75
+ /* @__PURE__ */ t(N, { pov: D ? null : x ?? "top", reset: r }),
76
+ /* @__PURE__ */ t(
77
+ q,
62
78
  {
63
- left: 5e3,
79
+ left: -15e3,
64
80
  right: 15e3,
65
81
  top: 15e3,
66
82
  bottom: -15e3,
67
83
  near: 0.1,
68
84
  far: 3e4,
69
85
  position: [0, 0, 8e3],
70
- defaultZoom: n || 1
86
+ defaultZoom: p || 1
71
87
  }
72
88
  ),
73
- /* @__PURE__ */ e("ambientLight", { intensity: 0.9 }),
74
- /* @__PURE__ */ e(
75
- E,
89
+ /* @__PURE__ */ t("ambientLight", { intensity: 0.9 }),
90
+ /* @__PURE__ */ t(
91
+ A,
76
92
  {
77
- defaultZoom: n || 1,
78
- playing: a,
79
- stepDirection: D,
80
- dayPerVizSec: u,
81
- frameOverride: P,
82
- potentialOrbits: h,
83
- elapsedTime: C,
84
- setElapsedTime: p,
93
+ defaultZoom: p || 1,
94
+ playing: l,
95
+ stepDirection: Z,
96
+ dayPerVizSec: w,
97
+ frameOverride: T,
98
+ potentialOrbits: k,
99
+ elapsedTime: v,
100
+ setElapsedTime: d,
85
101
  reset: r,
86
- zoomLevel: O,
87
- setZoomLevel: Z
102
+ zoomLevel: y,
103
+ setZoomLevel: j,
104
+ orbits: O ? b : a
88
105
  }
89
106
  ),
90
- /* @__PURE__ */ e(
91
- F,
107
+ /* @__PURE__ */ t(
108
+ H,
92
109
  {
93
- zoomLevel: O,
94
- defaultZoom: n || 1
110
+ zoomLevel: y,
111
+ defaultZoom: p || 1
95
112
  }
96
113
  )
97
114
  ] })
@@ -99,5 +116,5 @@ function ie() {
99
116
  ] });
100
117
  }
101
118
  export {
102
- ie as default
119
+ ce as default
103
120
  };
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("react"),o=require("../../../node_modules/prop-types/index.cjs"),ge=require("three"),fe=require("@react-three/fiber"),m=require("@react-three/drei"),t=require("../orbitalUtilities.cjs"),xe=require("../chartColors.module.css.cjs"),pe=require("../Context/index.cjs"),je=require("react-i18next"),g=require("./styles.cjs");function ye(i){if(i&&i.__esModule)return i;const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const a in i)if(a!=="default"){const j=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(f,a,j.get?j:{enumerable:!0,get:()=>i[a]})}}return f.default=i,Object.freeze(f)}const O=ye(ge),_=({data:i,selectionCallback:f,active:a,playing:j,dayPerVizSec:I,stepDirection:G,frameOverride:R,orbitColor:k,objectColor:C,objectRadius:w,initialized:D,initCallback:v,devMode:N,zoomMod:Z,defaultZoom:U,type:K,reset:A})=>{const{t:Y}=je.useTranslation(),{orbits:$}=pe.useOrbitalSimContext(),{activeVelocityCallback:J}=$,Q=r.useRef(),{a:z,e:W,i:X,M:ee,Node:B,Peri:V,Principal_desig:te,Translated_desig_key:q,name:oe}=i||{},[se]=r.useState(()=>[0,t.degsToRads(X),B?t.degsToRads(B):0]),[n]=r.useState(()=>t.auToUnit(z)),[y]=r.useState(()=>t.getMinorAxis(z,W)),[re]=r.useState(()=>t.getFocus(n,y)),[s]=r.useState(new O.Vector3(re,0,0)),[d]=r.useState(new O.Vector3(0,0,0)),[ie,ae]=r.useState(!1),[u]=r.useState(()=>t.getCurve(n,y,s.x,s.y)),[ne]=r.useState(()=>t.getLineGeometry(u.getPoints(360))),b=t.getPosFromArcLength(0,u),[x,T]=r.useState({position:b,rotation:[0,0,0],progress:0,velocity:t.getVelocity(b.distanceTo(d),n),period:0});r.useEffect(()=>{A>0&&T({position:b,rotation:[0,0,0],progress:0,velocity:t.getVelocity(b.distanceTo(d),n),period:0})},[A]);function le(h){let l=0,c=t.getPosFromArcLength(l,u);if(h){const P=h>180,M=P?h-180:h;let p=t.getAngleFromPos(c,d);for(;p<M;)l+=.01,c=t.getPosFromArcLength(l,u),p=t.getAngleFromPos(c,d);P&&(l+=.5,c=t.getPosFromArcLength(l,u))}return v?v():ae(!0),{position:c,rotation:[0,0,0],progress:l,velocity:t.getVelocity(c.distanceTo(d),n),period:0}}function H(h,L){const{progress:l,position:c,velocity:P,period:M}=x,p=h?0:L*(I||t.DAY_PER_VIZ_SEC),ce=P*p*G,S=l+ce/u.getLength(),E=S>1?1-S:S,{x:de,y:ue}=u.getPoint(E),he=new O.Vector3(de,ue,0),me=t.getVelocity(c.distanceTo(d),n);let F=p+M;S>1&&(F=0),T({...x,position:he,progress:E,velocity:me,period:F})}return r.useEffect(()=>{T(le(ee||Math.floor(Math.random()*Math.floor(180))))},[]),r.useEffect(()=>{R&&H(!1,1/60)},[R]),r.useEffect(()=>{a&&J(t.auToMeters(t.unitToAu(x.velocity/1e5)))},[x]),fe.useFrame((h,L)=>{(D||ie)&&H(!j,L)}),e.jsx("group",{rotation:se,children:e.jsxs("group",{rotation:[0,0,V?t.degsToRads(V+90):0],children:[e.jsx("line",{ref:Q,geometry:ne,children:e.jsx("lineBasicMaterial",{attach:"material",color:a?t.ORBITAL_COLORS.asteroid.orbitHighlight:k||t.ORBITAL_COLORS.asteroid.orbitColor})}),e.jsxs("mesh",{position:x.position,onClick:()=>f(i,"neo"),children:[(K==="planet"||a)&&e.jsx(m.Html,{children:e.jsx(g.Label,{children:e.jsx("button",{type:"button",style:{fontSize:t.getLabelSize(Z,U)},onClick:()=>f(i,"neo"),children:q?Y(q):oe||te})})}),e.jsx("sphereGeometry",{attach:"geometry",args:[w||4,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:a?t.ORBITAL_COLORS.asteroid.objectHighlight:C||t.ORBITAL_COLORS.asteroid.objectColor})]}),N&&e.jsxs(e.Fragment,{children:[e.jsxs("mesh",{position:s,children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:xe.default.chart1}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"center"})})]}),e.jsxs("mesh",{position:d,children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:C||"blue"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"sun"})})]}),e.jsxs("mesh",{position:[s.x,-y+s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"minor axis vertex"})})]}),e.jsxs("mesh",{position:[s.x,y+s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"minor axis vertex"})})]}),e.jsxs("mesh",{position:[n+s.x,s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"major axis vertex"})})]}),e.jsxs("mesh",{position:[-n+s.x,s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"major axis vertex"})})]})]})]})})};_.defaultProps={type:"object"};_.propTypes={data:o.default.object,selectionCallback:o.default.func,active:o.default.bool,playing:o.default.bool,dayPerVizSec:o.default.number,stepDirection:o.default.number,frameOverride:o.default.number,orbitColor:o.default.string,objectColor:o.default.string,objectRadius:o.default.number,initCallback:o.default.func,initialized:o.default.bool,devMode:o.default.bool,activeVelocityCallback:o.default.func,zoomMod:o.default.number,defaultZoom:o.default.number,type:o.default.string,reset:o.default.number};exports.default=_;
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("react"),o=require("../../../node_modules/prop-types/index.cjs"),ge=require("three"),fe=require("@react-three/fiber"),m=require("@react-three/drei"),t=require("../orbitalUtilities.cjs"),xe=require("../chartColors.module.css.cjs"),pe=require("../Context/index.cjs"),je=require("react-i18next"),g=require("./styles.cjs");function ye(i){if(i&&i.__esModule)return i;const f=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(i){for(const a in i)if(a!=="default"){const j=Object.getOwnPropertyDescriptor(i,a);Object.defineProperty(f,a,j.get?j:{enumerable:!0,get:()=>i[a]})}}return f.default=i,Object.freeze(f)}const O=ye(ge),_=({data:i,selectionCallback:f,active:a,playing:j,dayPerVizSec:G,stepDirection:k,frameOverride:R,orbitColor:w,objectColor:C,objectRadius:D,initialized:N,initCallback:v,devMode:Z,zoomMod:U,defaultZoom:K,type:A,reset:z})=>{const{t:Y}=je.useTranslation(),{orbits:$}=pe.useOrbitalSimContext(),{activeVelocityCallback:J}=$,Q=r.useRef(),{a:B,e:W,i:X,M:ee,Node:V,Peri:q,Principal_desig:te,Translated_desig_key:H,name:oe}=i||{},[se]=r.useState(()=>[0,t.degsToRads(X),V?t.degsToRads(V):0]),[n]=r.useState(()=>t.auToUnit(B)),[y]=r.useState(()=>t.getMinorAxis(B,W)),[re]=r.useState(()=>t.getFocus(n,y)),[s]=r.useState(new O.Vector3(re,0,0)),[d]=r.useState(new O.Vector3(0,0,0)),[ie,ae]=r.useState(!1),[u]=r.useState(()=>t.getCurve(n,y,s.x,s.y)),[ne]=r.useState(()=>t.getLineGeometry(u.getPoints(360))),b=t.getPosFromArcLength(0,u),[x,T]=r.useState({position:b,rotation:[0,0,0],progress:0,velocity:t.getVelocity(b.distanceTo(d),n),period:0});r.useEffect(()=>{z>0&&T({position:b,rotation:[0,0,0],progress:0,velocity:t.getVelocity(b.distanceTo(d),n),period:0})},[z]);function le(h){let l=0,c=t.getPosFromArcLength(l,u);if(h){const P=h>180,M=P?h-180:h;let p=t.getAngleFromPos(c,d);for(;p<M;)l+=.01,c=t.getPosFromArcLength(l,u),p=t.getAngleFromPos(c,d);P&&(l+=.5,c=t.getPosFromArcLength(l,u))}return v?v():ae(!0),{position:c,rotation:[0,0,0],progress:l,velocity:t.getVelocity(c.distanceTo(d),n),period:0}}function E(h,L){const{progress:l,position:c,velocity:P,period:M}=x,p=h?0:L*(G||t.DAY_PER_VIZ_SEC),ce=P*p*k,S=l+ce/u.getLength(),F=S>1?1-S:S,{x:de,y:ue}=u.getPoint(F),he=new O.Vector3(de,ue,0),me=t.getVelocity(c.distanceTo(d),n);let I=p+M;S>1&&(I=0),T({...x,position:he,progress:F,velocity:me,period:I})}return r.useEffect(()=>{T(le(ee||Math.floor(Math.random()*Math.floor(180))))},[]),r.useEffect(()=>{R&&E(!1,1/60)},[R]),r.useEffect(()=>{a&&J(t.auToMeters(t.unitToAu(x.velocity/1e5)))},[x]),fe.useFrame((h,L)=>{(N||ie)&&E(!j,L)}),e.jsx("group",{rotation:se,children:e.jsxs("group",{rotation:[0,0,q?t.degsToRads(q+90):0],children:[e.jsx("line",{ref:Q,geometry:ne,children:e.jsx("lineBasicMaterial",{attach:"material",color:a?t.ORBITAL_COLORS.asteroid.orbitHighlight:w||t.ORBITAL_COLORS.asteroid.orbitColor})}),e.jsxs("mesh",{position:x.position,onClick:()=>f(i,"neo"),children:[(A==="planet"||A==="neo"||a)&&e.jsx(m.Html,{children:e.jsx(g.Label,{children:e.jsx("button",{type:"button",style:{fontSize:t.getLabelSize(U,K)},onClick:()=>f(i,"neo"),children:H?Y(H):oe||te})})}),e.jsx("sphereGeometry",{attach:"geometry",args:[D||4,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:a?t.ORBITAL_COLORS.asteroid.objectHighlight:C||t.ORBITAL_COLORS.asteroid.objectColor})]}),Z&&e.jsxs(e.Fragment,{children:[e.jsxs("mesh",{position:s,children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:xe.default.chart1}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"center"})})]}),e.jsxs("mesh",{position:d,children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:C||"blue"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"sun"})})]}),e.jsxs("mesh",{position:[s.x,-y+s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"minor axis vertex"})})]}),e.jsxs("mesh",{position:[s.x,y+s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"minor axis vertex"})})]}),e.jsxs("mesh",{position:[n+s.x,s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"major axis vertex"})})]}),e.jsxs("mesh",{position:[-n+s.x,s.y,s.z],children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:"green"}),e.jsx(m.Html,{children:e.jsx(g.Label,{children:"major axis vertex"})})]})]})]})})};_.defaultProps={type:"object"};_.propTypes={data:o.default.object,selectionCallback:o.default.func,active:o.default.bool,playing:o.default.bool,dayPerVizSec:o.default.number,stepDirection:o.default.number,frameOverride:o.default.number,orbitColor:o.default.string,objectColor:o.default.string,objectRadius:o.default.number,initCallback:o.default.func,initialized:o.default.bool,devMode:o.default.bool,activeVelocityCallback:o.default.func,zoomMod:o.default.number,defaultZoom:o.default.number,type:o.default.string,reset:o.default.number};exports.default=_;