@interstellar-tools/constants 0.5.0 → 0.6.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.
- package/dist/bodies/asteroid-belts.d.ts +29 -0
- package/dist/bodies/asteroid-belts.d.ts.map +1 -0
- package/dist/bodies/asteroid-belts.js +47 -0
- package/dist/bodies/asteroid-belts.js.map +1 -0
- package/dist/bodies/asteroids.d.ts +26 -0
- package/dist/bodies/asteroids.d.ts.map +1 -0
- package/dist/bodies/asteroids.js +226 -0
- package/dist/bodies/asteroids.js.map +1 -0
- package/dist/bodies/comets.d.ts +27 -0
- package/dist/bodies/comets.d.ts.map +1 -0
- package/dist/bodies/comets.js +109 -0
- package/dist/bodies/comets.js.map +1 -0
- package/dist/bodies/galaxies.d.ts +27 -0
- package/dist/bodies/galaxies.d.ts.map +1 -0
- package/dist/bodies/galaxies.js +74 -0
- package/dist/bodies/galaxies.js.map +1 -0
- package/dist/bodies/index.d.ts +9 -0
- package/dist/bodies/index.d.ts.map +1 -0
- package/dist/bodies/index.js +9 -0
- package/dist/bodies/index.js.map +1 -0
- package/dist/bodies/moons.d.ts +28 -0
- package/dist/bodies/moons.d.ts.map +1 -0
- package/dist/bodies/moons.js +339 -0
- package/dist/bodies/moons.js.map +1 -0
- package/dist/bodies/planets.d.ts +27 -0
- package/dist/bodies/planets.d.ts.map +1 -0
- package/dist/bodies/planets.js +186 -0
- package/dist/bodies/planets.js.map +1 -0
- package/dist/bodies/stars.d.ts +27 -0
- package/dist/bodies/stars.d.ts.map +1 -0
- package/dist/bodies/stars.js +111 -0
- package/dist/bodies/stars.js.map +1 -0
- package/dist/bodies/systems.d.ts +27 -0
- package/dist/bodies/systems.d.ts.map +1 -0
- package/dist/bodies/systems.js +39 -0
- package/dist/bodies/systems.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AsteroidBeltsType } from '@interstellar-tools/types';
|
|
2
|
+
/**
|
|
3
|
+
* Predefined asteroid belts in the solar system visualization.
|
|
4
|
+
*
|
|
5
|
+
* ::: info
|
|
6
|
+
*
|
|
7
|
+
* - Radii are in astronomical units (au).
|
|
8
|
+
* - `opacity` is a visual alpha in the range [0..1].
|
|
9
|
+
* - `density` is a relative visual density for rendering, not physical.
|
|
10
|
+
*
|
|
11
|
+
* :::
|
|
12
|
+
*
|
|
13
|
+
* {@include ../../../../docs/partials/asteroid-belts.md}
|
|
14
|
+
*
|
|
15
|
+
* **Example item in dataset:**
|
|
16
|
+
*
|
|
17
|
+
* {@includeCode ../bodies/asteroid-belts.ts#datasetAsteroidBelts}
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* console.log(ASTEROID_BELTS[0].name); // "Main Asteroid Belt"
|
|
22
|
+
* ```
|
|
23
|
+
* @group Datasets
|
|
24
|
+
* @see {@link AsteroidBeltsType}.
|
|
25
|
+
* @see https://en.wikipedia.org/wiki/Asteroid_belt
|
|
26
|
+
* @see https://en.wikipedia.org/wiki/Kuiper_belt
|
|
27
|
+
*/
|
|
28
|
+
export declare const ASTEROID_BELTS: AsteroidBeltsType;
|
|
29
|
+
//# sourceMappingURL=asteroid-belts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asteroid-belts.d.ts","sourceRoot":"","sources":["../../src/bodies/asteroid-belts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,cAAc,EAAE,iBAmBS,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Predefined asteroid belts in the solar system visualization.
|
|
3
|
+
*
|
|
4
|
+
* ::: info
|
|
5
|
+
*
|
|
6
|
+
* - Radii are in astronomical units (au).
|
|
7
|
+
* - `opacity` is a visual alpha in the range [0..1].
|
|
8
|
+
* - `density` is a relative visual density for rendering, not physical.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
11
|
+
*
|
|
12
|
+
* {@include ../../../../docs/partials/asteroid-belts.md}
|
|
13
|
+
*
|
|
14
|
+
* **Example item in dataset:**
|
|
15
|
+
*
|
|
16
|
+
* {@includeCode ../bodies/asteroid-belts.ts#datasetAsteroidBelts}
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* console.log(ASTEROID_BELTS[0].name); // "Main Asteroid Belt"
|
|
21
|
+
* ```
|
|
22
|
+
* @group Datasets
|
|
23
|
+
* @see {@link AsteroidBeltsType}.
|
|
24
|
+
* @see https://en.wikipedia.org/wiki/Asteroid_belt
|
|
25
|
+
* @see https://en.wikipedia.org/wiki/Kuiper_belt
|
|
26
|
+
*/
|
|
27
|
+
export const ASTEROID_BELTS = [
|
|
28
|
+
// #region datasetAsteroidBelts
|
|
29
|
+
{
|
|
30
|
+
name: 'Main Asteroid Belt',
|
|
31
|
+
innerRadius: 2.1,
|
|
32
|
+
outerRadius: 3.3,
|
|
33
|
+
color: '#C4C4C4', // Light gray (rocky bodies)
|
|
34
|
+
opacity: 0.3,
|
|
35
|
+
density: 0.8
|
|
36
|
+
},
|
|
37
|
+
// #endregion datasetAsteroidBelts
|
|
38
|
+
{
|
|
39
|
+
name: 'Kuiper Belt',
|
|
40
|
+
innerRadius: 30,
|
|
41
|
+
outerRadius: 50,
|
|
42
|
+
color: '#88CCEE', // Light blue (icy bodies)
|
|
43
|
+
opacity: 0.2,
|
|
44
|
+
density: 0.5
|
|
45
|
+
}
|
|
46
|
+
];
|
|
47
|
+
//# sourceMappingURL=asteroid-belts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asteroid-belts.js","sourceRoot":"","sources":["../../src/bodies/asteroid-belts.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,CAAC,MAAM,cAAc,GAAsB;IAC/C,+BAA+B;IAC/B;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EAAE,GAAG;QAChB,WAAW,EAAE,GAAG;QAChB,KAAK,EAAE,SAAS,EAAE,4BAA4B;QAC9C,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,GAAG;KACb;IACD,kCAAkC;IAClC;QACE,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,KAAK,EAAE,SAAS,EAAE,0BAA0B;QAC5C,OAAO,EAAE,GAAG;QACZ,OAAO,EAAE,GAAG;KACb;CACmC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AsteroidsType } from '@interstellar-tools/types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a collection of well-known asteroids within the solar system simulation.
|
|
4
|
+
*
|
|
5
|
+
* ::: info
|
|
6
|
+
*
|
|
7
|
+
* - Units: `a` in astronomical units (au); `period` in days (d); `radius` in km.
|
|
8
|
+
* - Orbital angles `i`, `w`, and `om` are in degrees.
|
|
9
|
+
* - `color` and `size` are visual rendering hints only.
|
|
10
|
+
*
|
|
11
|
+
* :::
|
|
12
|
+
*
|
|
13
|
+
* {@include ../../../../docs/partials/asteroids.md}
|
|
14
|
+
*
|
|
15
|
+
* **Example item in dataset:**
|
|
16
|
+
*
|
|
17
|
+
* {@includeCode ../bodies/asteroids.ts#datasetAsteroids}
|
|
18
|
+
* @group Datasets
|
|
19
|
+
* @see {@link AsteroidsType}.
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* console.log(ASTEROIDS[0].name); // "Ceres"
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare const ASTEROIDS: AsteroidsType;
|
|
26
|
+
//# sourceMappingURL=asteroids.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asteroids.d.ts","sourceRoot":"","sources":["../../src/bodies/asteroids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,SAAS,EAAE,aAyMU,CAAC"}
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a collection of well-known asteroids within the solar system simulation.
|
|
3
|
+
*
|
|
4
|
+
* ::: info
|
|
5
|
+
*
|
|
6
|
+
* - Units: `a` in astronomical units (au); `period` in days (d); `radius` in km.
|
|
7
|
+
* - Orbital angles `i`, `w`, and `om` are in degrees.
|
|
8
|
+
* - `color` and `size` are visual rendering hints only.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
11
|
+
*
|
|
12
|
+
* {@include ../../../../docs/partials/asteroids.md}
|
|
13
|
+
*
|
|
14
|
+
* **Example item in dataset:**
|
|
15
|
+
*
|
|
16
|
+
* {@includeCode ../bodies/asteroids.ts#datasetAsteroids}
|
|
17
|
+
* @group Datasets
|
|
18
|
+
* @see {@link AsteroidsType}.
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* console.log(ASTEROIDS[0].name); // "Ceres"
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export const ASTEROIDS = [
|
|
25
|
+
// #region datasetAsteroids
|
|
26
|
+
{
|
|
27
|
+
name: 'Vesta',
|
|
28
|
+
type: 'main-belt asteroid',
|
|
29
|
+
category: 'large asteroid',
|
|
30
|
+
spectralType: 'v-type', // vesta has a unique basaltic surface
|
|
31
|
+
system: 'Sun',
|
|
32
|
+
a: { value: 2.362, unit: 'au' },
|
|
33
|
+
e: 0.09,
|
|
34
|
+
i: 7.1,
|
|
35
|
+
w: 151.2,
|
|
36
|
+
om: 103.8,
|
|
37
|
+
angle: 5.527458,
|
|
38
|
+
period: { value: -1325.2, unit: 'd' },
|
|
39
|
+
q: 2.151,
|
|
40
|
+
radius: { value: 262.7, unit: 'km' },
|
|
41
|
+
color: '#999999',
|
|
42
|
+
size: 1
|
|
43
|
+
},
|
|
44
|
+
// #endregion datasetAsteroids
|
|
45
|
+
{
|
|
46
|
+
name: 'Eros',
|
|
47
|
+
type: 'near-earth asteroid',
|
|
48
|
+
category: 'amor group',
|
|
49
|
+
spectralType: 's-type',
|
|
50
|
+
system: 'Sun',
|
|
51
|
+
a: { value: 1.458, unit: 'au' },
|
|
52
|
+
e: 0.223,
|
|
53
|
+
i: 10.8,
|
|
54
|
+
w: 178.9,
|
|
55
|
+
om: 304.3,
|
|
56
|
+
angle: 1.553343,
|
|
57
|
+
period: { value: -643.2, unit: 'd' },
|
|
58
|
+
q: 1.134,
|
|
59
|
+
radius: { value: 8.4, unit: 'km' },
|
|
60
|
+
color: '#aaaaaa',
|
|
61
|
+
size: 1
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'Pallas',
|
|
65
|
+
type: 'main-belt asteroid',
|
|
66
|
+
category: 'large asteroid',
|
|
67
|
+
spectralType: 'b-type',
|
|
68
|
+
system: 'Sun',
|
|
69
|
+
a: { value: 2.773, unit: 'au' },
|
|
70
|
+
e: 0.231,
|
|
71
|
+
i: 34.8,
|
|
72
|
+
w: 310.2,
|
|
73
|
+
om: 173.1,
|
|
74
|
+
angle: 0.579449,
|
|
75
|
+
period: { value: -1684.9, unit: 'd' },
|
|
76
|
+
q: 2.13,
|
|
77
|
+
radius: { value: 256, unit: 'km' },
|
|
78
|
+
color: '#888888',
|
|
79
|
+
size: 1
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: 'Hygiea',
|
|
83
|
+
type: 'main-belt asteroid',
|
|
84
|
+
category: 'large asteroid',
|
|
85
|
+
spectralType: 'c-type',
|
|
86
|
+
system: 'Sun',
|
|
87
|
+
a: { value: 3.141, unit: 'au' },
|
|
88
|
+
e: 0.112,
|
|
89
|
+
i: 3.8,
|
|
90
|
+
w: 312.3,
|
|
91
|
+
om: 283.2,
|
|
92
|
+
angle: 2.656391,
|
|
93
|
+
period: { value: -2033.8, unit: 'd' },
|
|
94
|
+
q: 2.788,
|
|
95
|
+
radius: { value: 216.5, unit: 'km' },
|
|
96
|
+
color: '#666666',
|
|
97
|
+
size: 1
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'Interamnia',
|
|
101
|
+
type: 'main-belt asteroid',
|
|
102
|
+
category: 'large asteroid',
|
|
103
|
+
spectralType: 'f-type',
|
|
104
|
+
system: 'Sun',
|
|
105
|
+
a: { value: 3.062, unit: 'au' },
|
|
106
|
+
e: 0.127,
|
|
107
|
+
i: 17.3,
|
|
108
|
+
w: 339.4,
|
|
109
|
+
om: 73.1,
|
|
110
|
+
angle: 0.788889,
|
|
111
|
+
period: { value: -1960.9, unit: 'd' },
|
|
112
|
+
q: 2.671,
|
|
113
|
+
radius: { value: 166, unit: 'km' },
|
|
114
|
+
color: '#777777',
|
|
115
|
+
size: 1
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'Euphrosyne',
|
|
119
|
+
type: 'main-belt asteroid',
|
|
120
|
+
category: 'large asteroid',
|
|
121
|
+
spectralType: 'c-type',
|
|
122
|
+
system: 'Sun',
|
|
123
|
+
a: { value: 3.155, unit: 'au' },
|
|
124
|
+
e: 0.223,
|
|
125
|
+
i: 26.3,
|
|
126
|
+
w: 34.8,
|
|
127
|
+
om: 359.2,
|
|
128
|
+
angle: 3.150319,
|
|
129
|
+
period: { value: -2045.5, unit: 'd' },
|
|
130
|
+
q: 2.451,
|
|
131
|
+
radius: { value: 134, unit: 'km' },
|
|
132
|
+
color: '#555555',
|
|
133
|
+
size: 1
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'Psyche',
|
|
137
|
+
type: 'main-belt asteroid',
|
|
138
|
+
category: 'large asteroid',
|
|
139
|
+
spectralType: 'm-type',
|
|
140
|
+
system: 'Sun',
|
|
141
|
+
a: { value: 2.924, unit: 'au' },
|
|
142
|
+
e: 0.14,
|
|
143
|
+
i: 3.1,
|
|
144
|
+
w: 228.0,
|
|
145
|
+
om: 150.2,
|
|
146
|
+
angle: 1.520182,
|
|
147
|
+
period: { value: -1820.1, unit: 'd' },
|
|
148
|
+
q: 2.515,
|
|
149
|
+
radius: { value: 111, unit: 'km' },
|
|
150
|
+
color: '#999999',
|
|
151
|
+
size: 1
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'Davida',
|
|
155
|
+
type: 'main-belt asteroid',
|
|
156
|
+
category: 'large asteroid',
|
|
157
|
+
spectralType: 'c-type',
|
|
158
|
+
system: 'Sun',
|
|
159
|
+
a: { value: 3.168, unit: 'au' },
|
|
160
|
+
e: 0.195,
|
|
161
|
+
i: 15.9,
|
|
162
|
+
w: 308.2,
|
|
163
|
+
om: 296.1,
|
|
164
|
+
angle: 2.099631,
|
|
165
|
+
period: { value: -2059.6, unit: 'd' },
|
|
166
|
+
q: 2.549,
|
|
167
|
+
radius: { value: 149, unit: 'km' },
|
|
168
|
+
color: '#444444',
|
|
169
|
+
size: 1
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'Europa',
|
|
173
|
+
type: 'main-belt asteroid',
|
|
174
|
+
category: 'large asteroid',
|
|
175
|
+
spectralType: 'c-type',
|
|
176
|
+
system: 'Sun',
|
|
177
|
+
a: { value: 3.101, unit: 'au' },
|
|
178
|
+
e: 0.101,
|
|
179
|
+
i: 7.5,
|
|
180
|
+
w: 87.7,
|
|
181
|
+
om: 304.4,
|
|
182
|
+
angle: 3.675663,
|
|
183
|
+
period: { value: -1977.9, unit: 'd' },
|
|
184
|
+
q: 2.788,
|
|
185
|
+
radius: { value: 156.5, unit: 'km' },
|
|
186
|
+
color: '#555555',
|
|
187
|
+
size: 1
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'Juno',
|
|
191
|
+
type: 'main-belt asteroid',
|
|
192
|
+
category: 'large asteroid',
|
|
193
|
+
spectralType: 's-type',
|
|
194
|
+
system: 'Sun',
|
|
195
|
+
a: { value: 2.67, unit: 'au' },
|
|
196
|
+
e: 0.257,
|
|
197
|
+
i: 12.9,
|
|
198
|
+
w: 248.3,
|
|
199
|
+
om: 169.8,
|
|
200
|
+
angle: 1.74882,
|
|
201
|
+
period: { value: -1594.4, unit: 'd' },
|
|
202
|
+
q: 1.986,
|
|
203
|
+
radius: { value: 117, unit: 'km' },
|
|
204
|
+
color: '#aaaaaa',
|
|
205
|
+
size: 1
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'Eunomia',
|
|
209
|
+
type: 'main-belt asteroid',
|
|
210
|
+
category: 'large asteroid',
|
|
211
|
+
spectralType: 's-type',
|
|
212
|
+
system: 'Sun',
|
|
213
|
+
a: { value: 2.643, unit: 'au' },
|
|
214
|
+
e: 0.186,
|
|
215
|
+
i: 11.7,
|
|
216
|
+
w: 97.5,
|
|
217
|
+
om: 293.3,
|
|
218
|
+
angle: 1.054179,
|
|
219
|
+
period: { value: -1567.6, unit: 'd' },
|
|
220
|
+
q: 2.153,
|
|
221
|
+
radius: { value: 136, unit: 'km' },
|
|
222
|
+
color: '#bbbbbb',
|
|
223
|
+
size: 1
|
|
224
|
+
}
|
|
225
|
+
];
|
|
226
|
+
//# sourceMappingURL=asteroids.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asteroids.js","sourceRoot":"","sources":["../../src/bodies/asteroids.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,MAAM,SAAS,GAAkB;IACtC,2BAA2B;IAC3B;QACE,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,gBAAgB;QAC1B,YAAY,EAAE,QAAQ,EAAE,sCAAsC;QAC9D,MAAM,EAAE,KAAK;QACb,CAAC,EAAE,EAAE,KAAK,E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AE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QAC9B,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,KAAK;QACR,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;QACrC,CAAC,EAAE,KAAK;QACR,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;QAClC,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,CAAC;KACR;IACD;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,oBAAoB;QAC1B,QAAQ,EAAE,gBAAgB;QAC1B,YAAY,EAAE,QAAQ;QACtB,MAAM,EAAE,KAAK;QACb,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE;QAC/B,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,IAAI;QACP,CAAC,EAAE,IAAI;QACP,EAAE,EAAE,KAAK;QACT,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE;QACrC,CAAC,EAAE,KAAK;QACR,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;QAClC,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,CAAC;KACR;CAC+B,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CometsType } from '@interstellar-tools/types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a collection of well-known comets within the solar system simulation.
|
|
4
|
+
*
|
|
5
|
+
* ::: info
|
|
6
|
+
*
|
|
7
|
+
* - Units: `a` (au), `period` (days), `radius` (km); angles `i`, `w`, `om` in degrees.
|
|
8
|
+
* - Some entries may encode integration direction via a negative `period`; the table reflects the raw value.
|
|
9
|
+
*
|
|
10
|
+
* :::
|
|
11
|
+
*
|
|
12
|
+
* {@include ../../../../docs/partials/comets.md}
|
|
13
|
+
*
|
|
14
|
+
* **Example item in dataset:**
|
|
15
|
+
*
|
|
16
|
+
* {@includeCode ../bodies/comets.ts#datasetComets}
|
|
17
|
+
*
|
|
18
|
+
* @group Datasets
|
|
19
|
+
* @see {@link CometsType}.
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* console.log(COMETS[0].name); // "Halley's Comet"
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export declare const COMETS: CometsType;
|
|
27
|
+
//# sourceMappingURL=comets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comets.d.ts","sourceRoot":"","sources":["../../src/bodies/comets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,MAAM,EAAE,UAmFU,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a collection of well-known comets within the solar system simulation.
|
|
3
|
+
*
|
|
4
|
+
* ::: info
|
|
5
|
+
*
|
|
6
|
+
* - Units: `a` (au), `period` (days), `radius` (km); angles `i`, `w`, `om` in degrees.
|
|
7
|
+
* - Some entries may encode integration direction via a negative `period`; the table reflects the raw value.
|
|
8
|
+
*
|
|
9
|
+
* :::
|
|
10
|
+
*
|
|
11
|
+
* {@include ../../../../docs/partials/comets.md}
|
|
12
|
+
*
|
|
13
|
+
* **Example item in dataset:**
|
|
14
|
+
*
|
|
15
|
+
* {@includeCode ../bodies/comets.ts#datasetComets}
|
|
16
|
+
*
|
|
17
|
+
* @group Datasets
|
|
18
|
+
* @see {@link CometsType}.
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* console.log(COMETS[0].name); // "Halley's Comet"
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export const COMETS = [
|
|
26
|
+
{
|
|
27
|
+
// eslint-disable-next-line @stylistic/quotes
|
|
28
|
+
name: "Halley's Comet",
|
|
29
|
+
type: 'periodic comet',
|
|
30
|
+
category: 'halley-type comet',
|
|
31
|
+
system: 'Sun',
|
|
32
|
+
/** Semi-major axis in AU */
|
|
33
|
+
a: { value: 17.834, unit: 'au' },
|
|
34
|
+
/** Eccentricity (0 = circular orbit, 1 = parabolic trajectory) */
|
|
35
|
+
e: 0.96714,
|
|
36
|
+
/** Inclination in degrees */
|
|
37
|
+
i: 162.26,
|
|
38
|
+
/** Argument of perihelion in degrees */
|
|
39
|
+
w: 111.33,
|
|
40
|
+
/** Longitude of the ascending node in degrees */
|
|
41
|
+
om: 58.42,
|
|
42
|
+
/** Mean anomaly in radians at J2000 epoch */
|
|
43
|
+
angle: 0.669857,
|
|
44
|
+
/** Orbital period in days */
|
|
45
|
+
period: { value: 27576, unit: 'd' }, // ~76 years
|
|
46
|
+
/** Perihelion distance in AU */
|
|
47
|
+
q: 0.586,
|
|
48
|
+
/** Visual representation color */
|
|
49
|
+
color: '#FFFFFF', // Bright white (reflective comet dust)
|
|
50
|
+
/** Scaled size for visualization */
|
|
51
|
+
size: 5,
|
|
52
|
+
/** Radius of the comet's nucleus in km */
|
|
53
|
+
radius: { value: 5.5, unit: 'km' }
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Comet Hale-Bopp',
|
|
57
|
+
type: 'oort cloud comet',
|
|
58
|
+
category: 'long-period comet',
|
|
59
|
+
system: 'Sun',
|
|
60
|
+
a: { value: 186.0, unit: 'au' },
|
|
61
|
+
e: 0.9951,
|
|
62
|
+
i: 89.4,
|
|
63
|
+
w: 130.6,
|
|
64
|
+
om: 282.5,
|
|
65
|
+
angle: 3.141593,
|
|
66
|
+
period: { value: -253533, unit: 'd' }, // ~695 years
|
|
67
|
+
q: 0.914,
|
|
68
|
+
color: '#00A6FF', // Electric blue (ionized tail appearance)
|
|
69
|
+
size: 4,
|
|
70
|
+
radius: { value: 30, unit: 'km' }
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'Comet 67P/Churyumov–Gerasimenko',
|
|
74
|
+
category: 'jupiter-family comet',
|
|
75
|
+
type: 'short-period comet',
|
|
76
|
+
system: 'Sun',
|
|
77
|
+
a: { value: 3.464, unit: 'au' }, // Semi-major axis
|
|
78
|
+
e: 0.641, // Eccentricity
|
|
79
|
+
i: 7.04, // Inclination in degrees
|
|
80
|
+
w: 12.78, // Argument of perihelion in degrees
|
|
81
|
+
om: 50.14, // Longitude of ascending node in degrees
|
|
82
|
+
angle: 0.0, // Initial angle (could be updated based on epoch)
|
|
83
|
+
period: { value: -2484, unit: 'd' }, // ~6.45 years
|
|
84
|
+
q: 1.243, // Perihelion distance in AU
|
|
85
|
+
color: '#AAAAAA', // Greyish surface color
|
|
86
|
+
size: 4, // Visualization size
|
|
87
|
+
radius: { value: 2, unit: 'km' } // Approximate average radius (~4km total diameter)
|
|
88
|
+
},
|
|
89
|
+
// #region datasetComets
|
|
90
|
+
{
|
|
91
|
+
name: 'Comet Encke',
|
|
92
|
+
type: 'short-period comet',
|
|
93
|
+
category: 'jupiter-family comet',
|
|
94
|
+
system: 'Sun',
|
|
95
|
+
a: { value: 2.22, unit: 'au' },
|
|
96
|
+
e: 0.85,
|
|
97
|
+
i: 11.8,
|
|
98
|
+
w: 186.5,
|
|
99
|
+
om: 334.6,
|
|
100
|
+
angle: 2.792527,
|
|
101
|
+
period: { value: -1204, unit: 'd' }, // ~3.3 years
|
|
102
|
+
q: 0.34,
|
|
103
|
+
color: '#FFD700', // Golden yellow (dusty tail, lower albedo)
|
|
104
|
+
size: 3,
|
|
105
|
+
radius: { value: 4.8, unit: 'km' }
|
|
106
|
+
}
|
|
107
|
+
// #endregion datasetComets
|
|
108
|
+
];
|
|
109
|
+
//# sourceMapp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ACf,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,aAAa;QAClD,CAAC,EAAE,IAAI;QACP,KAAK,EAAE,SAAS,EAAE,2CAA2C;QAC7D,IAAI,EAAE,CAAC;QACP,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;KACnC;IACD,2BAA2B;CACE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GalaxiesType } from '@interstellar-tools/types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a collection of galaxies within the space visualization.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* ::: info
|
|
7
|
+
*
|
|
8
|
+
* - Units: `diameter` and `distance` in light-years (ly); black hole `radius`, `x`, `y` in astronomical units (au).
|
|
9
|
+
* - Black hole `mass` is in solar masses ($ M_\odot $).
|
|
10
|
+
* - Values are mainly for visualization; not all are observationally exact.
|
|
11
|
+
*
|
|
12
|
+
* :::
|
|
13
|
+
*
|
|
14
|
+
* {@include ../../../../docs/partials/galaxies.md}
|
|
15
|
+
*
|
|
16
|
+
* **Example item in dataset:**
|
|
17
|
+
*
|
|
18
|
+
* {@includeCode ../bodies/galaxies.ts#datasetGalaxies}
|
|
19
|
+
* @see {@link GalaxiesType}.
|
|
20
|
+
* @group Datasets
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* console.log(GALAXIES[0].name); // "Milky Way"
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export declare const GALAXIES: GalaxiesType;
|
|
27
|
+
//# sourceMappingURL=galaxies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"galaxies.d.ts","sourceRoot":"","sources":["../../src/bodies/galaxies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,QAAQ,EAAE,YAgDU,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a collection of galaxies within the space visualization.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
* ::: info
|
|
6
|
+
*
|
|
7
|
+
* - Units: `diameter` and `distance` in light-years (ly); black hole `radius`, `x`, `y` in astronomical units (au).
|
|
8
|
+
* - Black hole `mass` is in solar masses ($ M_\odot $).
|
|
9
|
+
* - Values are mainly for visualization; not all are observationally exact.
|
|
10
|
+
*
|
|
11
|
+
* :::
|
|
12
|
+
*
|
|
13
|
+
* {@include ../../../../docs/partials/galaxies.md}
|
|
14
|
+
*
|
|
15
|
+
* **Example item in dataset:**
|
|
16
|
+
*
|
|
17
|
+
* {@includeCode ../bodies/galaxies.ts#datasetGalaxies}
|
|
18
|
+
* @see {@link GalaxiesType}.
|
|
19
|
+
* @group Datasets
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* console.log(GALAXIES[0].name); // "Milky Way"
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export const GALAXIES = [
|
|
26
|
+
// #region datasetGalaxies
|
|
27
|
+
{
|
|
28
|
+
name: 'Milky Way',
|
|
29
|
+
type: 'Barred Spiral',
|
|
30
|
+
/** Diameter of the galaxy in light-years. */
|
|
31
|
+
diameter: { value: 105700, unit: 'ly' },
|
|
32
|
+
/** Distance from the reference point (Milky Way itself). */
|
|
33
|
+
distance: { value: 0, unit: 'ly' },
|
|
34
|
+
/** Supermassive black hole at the center. */
|
|
35
|
+
blackHole: {
|
|
36
|
+
name: 'Sagittarius A*',
|
|
37
|
+
/** Mass of the black hole in Solar Masses ($ M_\odot $). */
|
|
38
|
+
mass: 4.154e6,
|
|
39
|
+
/** Schwarzschild radius (approximate) in AU. */
|
|
40
|
+
radius: { value: 0.08, unit: 'au' },
|
|
41
|
+
/** Positional reference within the galaxy in AU. */
|
|
42
|
+
x: { value: 0, unit: 'au' },
|
|
43
|
+
y: { value: 0, unit: 'au' }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
// #endregion datasetGalaxies
|
|
47
|
+
{
|
|
48
|
+
name: 'Andromeda',
|
|
49
|
+
type: 'Barred Spiral',
|
|
50
|
+
diameter: { value: 220000, unit: 'ly' },
|
|
51
|
+
distance: { value: 2537002537000, unit: 'ly' }, // Distance from the Milky Way in light-years
|
|
52
|
+
blackHole: {
|
|
53
|
+
name: 'Andromeda Central Black Hole',
|
|
54
|
+
mass: 1.1e8,
|
|
55
|
+
radius: { value: 5, unit: 'au' },
|
|
56
|
+
x: { value: 0, unit: 'au' },
|
|
57
|
+
y: { value: 160442417000, unit: 'au' }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
name: 'Triangulum',
|
|
62
|
+
type: 'Spiral',
|
|
63
|
+
diameter: { value: 60000, unit: 'ly' },
|
|
64
|
+
distance: { value: 3000003000000, unit: 'ly' }, // Distance in light-years
|
|
65
|
+
blackHole: {
|
|
66
|
+
name: 'Triangulum Central Black Hole',
|
|
67
|
+
mass: 1.5e6,
|
|
68
|
+
radius: { value: 0.1, unit: 'au' },
|
|
69
|
+
x: { value: 0, unit: 'au' },
|
|
70
|
+
y: { value: 189723000000, unit: 'au' }
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
];
|
|
74
|
+
//# sourceMappingURL=galaxies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"galaxies.js","sourceRoot":"","sources":["../../src/bodies/galaxies.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAiB;IACpC,0BAA0B;IAC1B;QACE,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,eAAe;QACrB,6CAA6C;QAC7C,QAAQ,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,IAA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,EAAE,+BAA+B;YACrC,IAAI,EAAE,KAAK;YACX,MAAM,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE;YAClC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE;YAC3B,CAAC,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,IAAI,EAAE;SACvC;KACF;CAC8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './asteroid-belts';
|
|
2
|
+
export * from './asteroids';
|
|
3
|
+
export * from './comets';
|
|
4
|
+
export * from './galaxies';
|
|
5
|
+
export * from './moons';
|
|
6
|
+
export * from './planets';
|
|
7
|
+
export * from './stars';
|
|
8
|
+
export * from './systems';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/bodies/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,aAAa,CAAC;AAE5B,cAAc,UAAU,CAAC;AAEzB,cAAc,YAAY,CAAC;AAE3B,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './asteroid-belts';
|
|
2
|
+
export * from './asteroids';
|
|
3
|
+
export * from './comets';
|
|
4
|
+
export * from './galaxies';
|
|
5
|
+
export * from './moons';
|
|
6
|
+
export * from './planets';
|
|
7
|
+
export * from './stars';
|
|
8
|
+
export * from './systems';
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/bodies/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,aAAa,CAAC;AAE5B,cAAc,UAAU,CAAC;AAEzB,cAAc,YAAY,CAAC;AAE3B,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC;AAE1B,cAAc,SAAS,CAAC;AAExB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { MoonsType } from '@interstellar-tools/types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a dataset of natural satellites (moons) in the solar system.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* ::: info
|
|
7
|
+
*
|
|
8
|
+
* - Units: `a` in astronomical units (au), `period` in days (d), `radius` in kilometers (km).
|
|
9
|
+
* - Colors are hex strings used only for visual representation.
|
|
10
|
+
* - The table below is **NOT CURRENTLY** generated from the dataset at build time.
|
|
11
|
+
*
|
|
12
|
+
* :::
|
|
13
|
+
*
|
|
14
|
+
* {@include ../../../../docs/partials/moons.md}
|
|
15
|
+
*
|
|
16
|
+
* @see {@link MoonsType}.
|
|
17
|
+
*
|
|
18
|
+
* **Example item in dataset:**
|
|
19
|
+
*
|
|
20
|
+
* {@includeCode ../bodies/moons.ts#datasetMoons}
|
|
21
|
+
* @group Datasets
|
|
22
|
+
* @example
|
|
23
|
+
* ```ts
|
|
24
|
+
* console.log(MOONS[0].name); // "Moon"
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const MOONS: MoonsType;
|
|
28
|
+
//# sourceMappingURL=moons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"moons.d.ts","sourceRoot":"","sources":["../../src/bodies/moons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,KAAK,EAAE,SA4TU,CAAC"}
|