astraeus-data-mars 0.9.4 → 0.10.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/package.json +2 -2
- package/src/chunks.js +0 -1
- package/src/index.js +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astraeus-data-mars",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Mars's moon positions for the Astraeus engine: piecewise Chebyshev fits of JPL Horizons state vectors, 2010 to 2030.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"mars"
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"astraeus": ">=0.
|
|
20
|
+
"astraeus": ">=0.10.0 <0.11.0"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
package/src/chunks.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
// Generated by tools/build-packages.mjs: 60 chunk files.
|
|
2
1
|
export const chunkUrls = Object.freeze({
|
|
3
2
|
"deimos/2010.bin": new URL("../data/mars-moons/deimos/2010.bin?no-inline", import.meta.url).href,
|
|
4
3
|
"deimos/2011.bin": new URL("../data/mars-moons/deimos/2011.bin?no-inline", import.meta.url).href,
|
package/src/index.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { chunkUrls } from "./chunks.js";
|
|
2
|
-
/** Reads Mars's index (the moons, their fits and the measured errors). A dynamic import, so a bundler keeps it as its own file. */
|
|
3
2
|
export const loadIndex = async () => {
|
|
4
3
|
const loaded = (await import("../data/mars-moons/index.json", { with: { type: "json" } }));
|
|
5
|
-
return loaded.default ?? loaded;
|
|
4
|
+
return loaded.default ?? loaded;
|
|
6
5
|
};
|
|
7
6
|
export { chunkUrls };
|
|
8
|
-
/** Hand this to `mount(element, scene, { data: [dataSource] })` to give Mars's moons their positions. */
|
|
9
7
|
export const dataSource = Object.freeze({
|
|
10
8
|
name: "astraeus-data-mars",
|
|
11
9
|
provides: ["phobos", "deimos"],
|