@rubin-epo/epo-widget-lib 1.1.3 → 1.3.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/README.MD +4 -1
- package/dist/OrbitalSim.cjs +1 -0
- package/dist/OrbitalSim.d.ts +1 -0
- package/dist/OrbitalSim.js +9 -0
- package/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/index2.cjs +1 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/_virtual/index3.cjs +1 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/react-is.development.cjs +1 -0
- package/dist/_virtual/react-is.development.js +4 -0
- package/dist/_virtual/react-is.production.min.cjs +1 -0
- package/dist/_virtual/react-is.production.min.js +4 -0
- package/dist/atomic/ImageStack/styles.d.ts +4 -0
- package/dist/atomic/PlaybackControl/PlaybackControl.cjs +1 -1
- package/dist/atomic/PlaybackControl/PlaybackControl.js +5 -5
- package/dist/atomic/PlaybackControl/styles.cjs +8 -5
- package/dist/atomic/PlaybackControl/styles.d.ts +4 -0
- package/dist/atomic/PlaybackControl/styles.js +12 -8
- package/dist/charts/Unit/Span.d.ts +10 -0
- package/dist/charts/Unit/StandardUnit.d.ts +12 -0
- package/dist/charts/Unit/StellarUnit.d.ts +12 -0
- package/dist/charts/Unit/Sub.d.ts +10 -0
- package/dist/charts/Unit/SvgSub.d.ts +10 -0
- package/dist/charts/Unit/TSpan.d.ts +10 -0
- package/dist/charts/Unit/index.d.ts +9 -0
- package/dist/charts/Unit/utilities.d.ts +25 -0
- package/dist/layout/Controls/index.d.ts +1 -1
- package/dist/localeStrings/en/epo-widget-lib.json +23 -0
- package/dist/localeStrings/es/epo-widget-lib.json +2 -1
- package/dist/node_modules/classnames/index.cjs +5 -0
- package/dist/node_modules/classnames/index.js +42 -0
- package/dist/node_modules/object-assign/index.cjs +5 -0
- package/dist/node_modules/object-assign/index.js +54 -0
- package/dist/node_modules/prop-types/checkPropTypes.cjs +1 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.cjs +1 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.cjs +2 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
- package/dist/node_modules/prop-types/index.cjs +1 -0
- package/dist/node_modules/prop-types/index.js +15 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.cjs +1 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/has.cjs +1 -0
- package/dist/node_modules/prop-types/lib/has.js +7 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs +8 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.cjs +8 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.cjs +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/three/examples/jsm/controls/OrbitControls.cjs +1 -0
- package/dist/node_modules/three/examples/jsm/controls/OrbitControls.js +458 -0
- package/dist/style.css +1 -0
- package/dist/widgets/ColorTool/ImageComposite/styles.d.ts +4 -0
- package/dist/widgets/ColorTool/styles.d.ts +6 -0
- package/dist/widgets/OrbitalSim/Camera.cjs +1 -0
- package/dist/widgets/OrbitalSim/Camera.d.ts +10 -0
- package/dist/widgets/OrbitalSim/Camera.js +20 -0
- package/dist/widgets/OrbitalSim/CameraController.cjs +1 -0
- package/dist/widgets/OrbitalSim/CameraController.d.ts +12 -0
- package/dist/widgets/OrbitalSim/CameraController.js +31 -0
- package/dist/widgets/OrbitalSim/Context/OrbitalSimContext.d.ts +0 -0
- package/dist/widgets/OrbitalSim/Context/index.cjs +1 -0
- package/dist/widgets/OrbitalSim/Context/index.d.ts +66 -0
- package/dist/widgets/OrbitalSim/Context/index.js +61 -0
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.cjs +1 -0
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.d.ts +13 -0
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.js +60 -0
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.module.css.cjs +1 -0
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.module.css.js +7 -0
- package/dist/widgets/OrbitalSim/Observation.cjs +1 -0
- package/dist/widgets/OrbitalSim/Observation.d.ts +12 -0
- package/dist/widgets/OrbitalSim/Observation.js +50 -0
- package/dist/widgets/OrbitalSim/Observations.cjs +1 -0
- package/dist/widgets/OrbitalSim/Observations.d.ts +12 -0
- package/dist/widgets/OrbitalSim/Observations.js +34 -0
- package/dist/widgets/OrbitalSim/Orbital.cjs +1 -0
- package/dist/widgets/OrbitalSim/Orbital.d.ts +49 -0
- package/dist/widgets/OrbitalSim/Orbital.js +255 -0
- package/dist/widgets/OrbitalSim/OrbitalDetails.cjs +1 -0
- package/dist/widgets/OrbitalSim/OrbitalDetails.d.ts +2 -0
- package/dist/widgets/OrbitalSim/OrbitalDetails.js +53 -0
- package/dist/widgets/OrbitalSim/OrbitalSim.cjs +1 -0
- package/dist/widgets/OrbitalSim/OrbitalSim.d.ts +2 -0
- package/dist/widgets/OrbitalSim/OrbitalSim.js +108 -0
- package/dist/widgets/OrbitalSim/OrbitalSim.module.css.cjs +1 -0
- package/dist/widgets/OrbitalSim/OrbitalSim.module.css.js +51 -0
- package/dist/widgets/OrbitalSim/Orbitals.cjs +1 -0
- package/dist/widgets/OrbitalSim/Orbitals.d.ts +33 -0
- package/dist/widgets/OrbitalSim/Orbitals.js +128 -0
- package/dist/widgets/OrbitalSim/PlaybackSpeed.cjs +1 -0
- package/dist/widgets/OrbitalSim/PlaybackSpeed.d.ts +16 -0
- package/dist/widgets/OrbitalSim/PlaybackSpeed.js +96 -0
- package/dist/widgets/OrbitalSim/PotentialOrbits.cjs +1 -0
- package/dist/widgets/OrbitalSim/PotentialOrbits.d.ts +8 -0
- package/dist/widgets/OrbitalSim/PotentialOrbits.js +51 -0
- package/dist/widgets/OrbitalSim/Sun.cjs +1 -0
- package/dist/widgets/OrbitalSim/Sun.d.ts +11 -0
- package/dist/widgets/OrbitalSim/Sun.js +35 -0
- package/dist/widgets/OrbitalSim/chartColors.module.css.cjs +1 -0
- package/dist/widgets/OrbitalSim/chartColors.module.css.js +4 -0
- package/dist/widgets/OrbitalSim/index.d.ts +2 -0
- package/dist/widgets/OrbitalSim/orbitalUtilities.cjs +1 -0
- package/dist/widgets/OrbitalSim/orbitalUtilities.d.ts +71 -0
- package/dist/widgets/OrbitalSim/orbitalUtilities.js +145 -0
- package/dist/widgets/SupernovaThreeVector/Histogram/index.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/styles.d.ts +8 -0
- package/package.json +11 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("three");function d(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=d(g),c=100,f=1,n={sun:{objectColor:"#f8da86"},mercury:{objectColor:"#dce0e3",orbitColor:"#a6a9ab"},venus:{objectColor:"#cd84ec",orbitColor:"#9c65b4"},earth:{objectColor:"#3f9ef0",orbitColor:"#3079b8"},mars:{objectColor:"#ed4c4c",orbitColor:"#b53a3a"},jupiter:{objectColor:"#f1b571",orbitColor:"#b98b57"},neptune:{objectColor:"#3cae3f",orbitColor:"#29762b"},asteroid:{objectColor:"#b1f2ef",orbitColor:"#6a6e6e",objectHighlight:"#00ffff",orbitHighlight:"#ffffff"}},p={a:1,e:.01671022,i:0,H:-3.9,Ref:"Earth",Principal_desig:"Earth",Translated_desig_key:"planets.earth",orbitColor:n.earth.orbitColor,objectColor:n.earth.objectColor,objectRadius:5},C={a:1.52366231,e:.09341233,i:1.85061,H:-1.52,Ref:"Mars",Principal_desig:"Mars",Translated_desig_key:"planets.mars",orbitColor:n.mars.orbitColor,objectColor:n.mars.objectColor,objectRadius:4},j={a:5.2028,e:.048,i:1.31,H:-25.9,Ref:"Jupiter",Principal_desig:"Jupiter",Translated_desig_key:"planets.jupiter",orbitColor:n.jupiter.orbitColor,objectColor:n.jupiter.objectColor,objectRadius:7},_={a:30.06896348,e:.00858587,i:1.76917,H:-25.9,Ref:"Neptune",Principal_desig:"Neptune",Translated_desig_key:"planets.neptune",orbitColor:n.neptune.orbitColor,objectColor:n.neptune.objectColor,objectRadius:6},m=e=>({neptune:_,earth:p,mars:C,jupiter:j})[e]||null,A=function(e,t){return Number.parseFloat(Number.parseFloat(e).toFixed(t))},R=(e,t,o=0,r=0)=>new s.EllipseCurve(o,r,e,t,0,2*Math.PI,!1,0),T=e=>new s.BufferGeometry().setFromPoints(e),y=(e,t)=>{const o=e.distanceTo(t),{x:r,y:i}=e;return Math.acos((o**2+r**2-i**2)/(2*o*r))*180/Math.PI},P=(e,t)=>{const{x:o,y:r}=t.getPoint(e);return new s.Vector3(o,r,0)},b=e=>e*c,h=e=>e/c,S=(e,t)=>b(e*Math.sqrt(1-t**2)),O=e=>1496e8*e,a=e=>e*(Math.PI/180),M=(e,t)=>{const o=.000296005155*c**3;return Math.sqrt(o*(2/e-1/t))},x=(e,t)=>Math.sqrt(e**2-t**2),z=(e,t)=>{const{i:o,Peri:r,Node:i}=t,l=new s.Vector3(0,1,0),u=new s.Vector3(0,0,1);return new s.Vector3(e.x,e.y,0).applyAxisAngle(u,r?a(r+90):0).applyAxisAngle(l,a(o)).applyAxisAngle(u,i?a(i):0)},E=(e,t)=>{const i=15*(e/t);return i<=4?4:i>=15?15:i};exports.AU_TO_VIZ_SCALER=c;exports.DAY_PER_VIZ_SEC=f;exports.ORBITAL_COLORS=n;exports.auToMeters=O;exports.auToUnit=b;exports.convert2dTo3d=z;exports.degsToRads=a;exports.formatValue=A;exports.getAngleFromPos=y;exports.getCurve=R;exports.getFocus=x;exports.getLabelSize=E;exports.getLineGeometry=T;exports.getMinorAxis=S;exports.getPosFromArcLength=P;exports.getRefObjProps=m;exports.getVelocity=M;exports.unitToAu=h;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export const AU_TO_VIZ_SCALER: 100;
|
|
2
|
+
export const DAY_PER_VIZ_SEC: 1;
|
|
3
|
+
export namespace ORBITAL_COLORS {
|
|
4
|
+
namespace sun {
|
|
5
|
+
let objectColor: string;
|
|
6
|
+
}
|
|
7
|
+
namespace mercury {
|
|
8
|
+
let objectColor_1: string;
|
|
9
|
+
export { objectColor_1 as objectColor };
|
|
10
|
+
export let orbitColor: string;
|
|
11
|
+
}
|
|
12
|
+
namespace venus {
|
|
13
|
+
let objectColor_2: string;
|
|
14
|
+
export { objectColor_2 as objectColor };
|
|
15
|
+
let orbitColor_1: string;
|
|
16
|
+
export { orbitColor_1 as orbitColor };
|
|
17
|
+
}
|
|
18
|
+
namespace earth {
|
|
19
|
+
let objectColor_3: string;
|
|
20
|
+
export { objectColor_3 as objectColor };
|
|
21
|
+
let orbitColor_2: string;
|
|
22
|
+
export { orbitColor_2 as orbitColor };
|
|
23
|
+
}
|
|
24
|
+
namespace mars {
|
|
25
|
+
let objectColor_4: string;
|
|
26
|
+
export { objectColor_4 as objectColor };
|
|
27
|
+
let orbitColor_3: string;
|
|
28
|
+
export { orbitColor_3 as orbitColor };
|
|
29
|
+
}
|
|
30
|
+
namespace jupiter {
|
|
31
|
+
let objectColor_5: string;
|
|
32
|
+
export { objectColor_5 as objectColor };
|
|
33
|
+
let orbitColor_4: string;
|
|
34
|
+
export { orbitColor_4 as orbitColor };
|
|
35
|
+
}
|
|
36
|
+
namespace neptune {
|
|
37
|
+
let objectColor_6: string;
|
|
38
|
+
export { objectColor_6 as objectColor };
|
|
39
|
+
let orbitColor_5: string;
|
|
40
|
+
export { orbitColor_5 as orbitColor };
|
|
41
|
+
}
|
|
42
|
+
namespace asteroid {
|
|
43
|
+
let objectColor_7: string;
|
|
44
|
+
export { objectColor_7 as objectColor };
|
|
45
|
+
let orbitColor_6: string;
|
|
46
|
+
export { orbitColor_6 as orbitColor };
|
|
47
|
+
export let objectHighlight: string;
|
|
48
|
+
export let orbitHighlight: string;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export function getRefObjProps(id: any): any;
|
|
52
|
+
export function formatValue(number: any, decimalPlaces: any): number;
|
|
53
|
+
export function randomIntFromInterval(min: any, max: any): number;
|
|
54
|
+
export function getCurve(xRadius: any, yRadius: any, aX?: number, aY?: number): THREE.EllipseCurve;
|
|
55
|
+
export function getLineGeometry(points: any): THREE.BufferGeometry<THREE.NormalBufferAttributes, THREE.BufferGeometryEventMap>;
|
|
56
|
+
export function getAngleFromPos(pos: any, sunPos: any): number;
|
|
57
|
+
export function getPosFromArcLength(arcLength: any, path: any): THREE.Vector3;
|
|
58
|
+
export function auToUnit(value: any): number;
|
|
59
|
+
export function unitToAu(value: any): number;
|
|
60
|
+
export function getMinorAxis(a: any, e: any): number;
|
|
61
|
+
export function auToMeters(value: any): number;
|
|
62
|
+
export function metersToAu(value: any): number;
|
|
63
|
+
export function degsToRads(i: any): number;
|
|
64
|
+
export function radsToDegs(i: any): number;
|
|
65
|
+
export function getVelocity(radius: any, maj: any): number;
|
|
66
|
+
export function getFocus(majAxis: any, minAxis: any): number;
|
|
67
|
+
export function getDiameter(magnitude: any, albedo: any): number;
|
|
68
|
+
export function getRadius(magnitude: any): number;
|
|
69
|
+
export function convert2dTo3d(vector2D: any, orbitData: any): THREE.Vector3;
|
|
70
|
+
export function getLabelSize(zoomLevel: any, defaultZoom: any): number;
|
|
71
|
+
import * as THREE from 'three';
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import * as i from "three";
|
|
2
|
+
const c = 100, g = 1, s = {
|
|
3
|
+
sun: {
|
|
4
|
+
objectColor: "#f8da86"
|
|
5
|
+
},
|
|
6
|
+
mercury: {
|
|
7
|
+
objectColor: "#dce0e3",
|
|
8
|
+
orbitColor: "#a6a9ab"
|
|
9
|
+
},
|
|
10
|
+
venus: {
|
|
11
|
+
objectColor: "#cd84ec",
|
|
12
|
+
orbitColor: "#9c65b4"
|
|
13
|
+
},
|
|
14
|
+
earth: {
|
|
15
|
+
objectColor: "#3f9ef0",
|
|
16
|
+
orbitColor: "#3079b8"
|
|
17
|
+
},
|
|
18
|
+
mars: {
|
|
19
|
+
objectColor: "#ed4c4c",
|
|
20
|
+
orbitColor: "#b53a3a"
|
|
21
|
+
},
|
|
22
|
+
jupiter: {
|
|
23
|
+
objectColor: "#f1b571",
|
|
24
|
+
orbitColor: "#b98b57"
|
|
25
|
+
},
|
|
26
|
+
neptune: {
|
|
27
|
+
objectColor: "#3cae3f",
|
|
28
|
+
orbitColor: "#29762b"
|
|
29
|
+
},
|
|
30
|
+
asteroid: {
|
|
31
|
+
objectColor: "#b1f2ef",
|
|
32
|
+
orbitColor: "#6a6e6e",
|
|
33
|
+
objectHighlight: "#00ffff",
|
|
34
|
+
orbitHighlight: "#ffffff"
|
|
35
|
+
}
|
|
36
|
+
}, u = {
|
|
37
|
+
a: 1,
|
|
38
|
+
e: 0.01671022,
|
|
39
|
+
i: 0,
|
|
40
|
+
H: -3.9,
|
|
41
|
+
Ref: "Earth",
|
|
42
|
+
Principal_desig: "Earth",
|
|
43
|
+
Translated_desig_key: "planets.earth",
|
|
44
|
+
orbitColor: s.earth.orbitColor,
|
|
45
|
+
objectColor: s.earth.objectColor,
|
|
46
|
+
// objectRadius: 6371000,
|
|
47
|
+
objectRadius: 5
|
|
48
|
+
}, C = {
|
|
49
|
+
a: 1.52366231,
|
|
50
|
+
e: 0.09341233,
|
|
51
|
+
i: 1.85061,
|
|
52
|
+
H: -1.52,
|
|
53
|
+
Ref: "Mars",
|
|
54
|
+
Principal_desig: "Mars",
|
|
55
|
+
Translated_desig_key: "planets.mars",
|
|
56
|
+
orbitColor: s.mars.orbitColor,
|
|
57
|
+
objectColor: s.mars.objectColor,
|
|
58
|
+
objectRadius: 4
|
|
59
|
+
}, p = {
|
|
60
|
+
a: 5.2028,
|
|
61
|
+
e: 0.048,
|
|
62
|
+
i: 1.31,
|
|
63
|
+
H: -25.9,
|
|
64
|
+
Ref: "Jupiter",
|
|
65
|
+
Principal_desig: "Jupiter",
|
|
66
|
+
Translated_desig_key: "planets.jupiter",
|
|
67
|
+
orbitColor: s.jupiter.orbitColor,
|
|
68
|
+
objectColor: s.jupiter.objectColor,
|
|
69
|
+
// objectRadius: 69911000,
|
|
70
|
+
objectRadius: 7
|
|
71
|
+
}, d = {
|
|
72
|
+
a: 30.06896348,
|
|
73
|
+
e: 858587e-8,
|
|
74
|
+
i: 1.76917,
|
|
75
|
+
H: -25.9,
|
|
76
|
+
Ref: "Neptune",
|
|
77
|
+
Principal_desig: "Neptune",
|
|
78
|
+
Translated_desig_key: "planets.neptune",
|
|
79
|
+
orbitColor: s.neptune.orbitColor,
|
|
80
|
+
objectColor: s.neptune.objectColor,
|
|
81
|
+
// objectRadius: 24622000,
|
|
82
|
+
objectRadius: 6
|
|
83
|
+
}, j = (e) => ({
|
|
84
|
+
neptune: d,
|
|
85
|
+
earth: u,
|
|
86
|
+
mars: C,
|
|
87
|
+
jupiter: p
|
|
88
|
+
})[e] || null, m = function(e, o) {
|
|
89
|
+
return Number.parseFloat(Number.parseFloat(e).toFixed(o));
|
|
90
|
+
}, h = (e, o, t = 0, r = 0) => new i.EllipseCurve(
|
|
91
|
+
t,
|
|
92
|
+
// aX
|
|
93
|
+
r,
|
|
94
|
+
// aY
|
|
95
|
+
e,
|
|
96
|
+
// xRadius
|
|
97
|
+
o,
|
|
98
|
+
// yRadius
|
|
99
|
+
0,
|
|
100
|
+
// aStartAngle
|
|
101
|
+
2 * Math.PI,
|
|
102
|
+
// aEndAngle
|
|
103
|
+
!1,
|
|
104
|
+
// aClockwise
|
|
105
|
+
0
|
|
106
|
+
// aRotation
|
|
107
|
+
), _ = (e) => new i.BufferGeometry().setFromPoints(e), R = (e, o) => {
|
|
108
|
+
const t = e.distanceTo(o), { x: r, y: n } = e;
|
|
109
|
+
return Math.acos((t ** 2 + r ** 2 - n ** 2) / (2 * t * r)) * 180 / Math.PI;
|
|
110
|
+
}, A = (e, o) => {
|
|
111
|
+
const { x: t, y: r } = o.getPoint(e);
|
|
112
|
+
return new i.Vector3(t, r, 0);
|
|
113
|
+
}, f = (e) => e * c, x = (e) => e / c, y = (e, o) => f(e * Math.sqrt(1 - o ** 2)), P = (e) => 1496e8 * e, a = (e) => e * (Math.PI / 180), T = (e, o) => {
|
|
114
|
+
const t = 296005155e-12 * c ** 3;
|
|
115
|
+
return Math.sqrt(t * (2 / e - 1 / o));
|
|
116
|
+
}, M = (e, o) => Math.sqrt(e ** 2 - o ** 2), S = (e, o) => {
|
|
117
|
+
const { i: t, Peri: r, Node: n } = o, l = new i.Vector3(0, 1, 0), b = new i.Vector3(0, 0, 1);
|
|
118
|
+
return new i.Vector3(e.x, e.y, 0).applyAxisAngle(b, r ? a(r + 90) : 0).applyAxisAngle(l, a(t)).applyAxisAngle(
|
|
119
|
+
b,
|
|
120
|
+
n ? a(n) : 0
|
|
121
|
+
);
|
|
122
|
+
}, z = (e, o) => {
|
|
123
|
+
const n = 15 * (e / o);
|
|
124
|
+
return n <= 4 ? 4 : n >= 15 ? 15 : n;
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
c as AU_TO_VIZ_SCALER,
|
|
128
|
+
g as DAY_PER_VIZ_SEC,
|
|
129
|
+
s as ORBITAL_COLORS,
|
|
130
|
+
P as auToMeters,
|
|
131
|
+
f as auToUnit,
|
|
132
|
+
S as convert2dTo3d,
|
|
133
|
+
a as degsToRads,
|
|
134
|
+
m as formatValue,
|
|
135
|
+
R as getAngleFromPos,
|
|
136
|
+
h as getCurve,
|
|
137
|
+
M as getFocus,
|
|
138
|
+
z as getLabelSize,
|
|
139
|
+
_ as getLineGeometry,
|
|
140
|
+
y as getMinorAxis,
|
|
141
|
+
A as getPosFromArcLength,
|
|
142
|
+
j as getRefObjProps,
|
|
143
|
+
T as getVelocity,
|
|
144
|
+
x as unitToAu
|
|
145
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
2
|
import { ChartMargin, Domain, HistogramData, ScaleFunction } from '../../../types/charts';
|
|
3
3
|
|
|
4
|
-
interface DistanceHistogramProps {
|
|
4
|
+
export interface DistanceHistogramProps {
|
|
5
5
|
data: HistogramData;
|
|
6
6
|
activeRange: Array<number>;
|
|
7
7
|
margin: ChartMargin;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ThreeVectorLayout: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
export declare const HistogramContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
export declare const Histogram: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('./Histogram').DistanceHistogramProps, never>> & string & Omit<import('react').FunctionComponent<import('./Histogram').DistanceHistogramProps>, keyof import('react').Component<any, {}, any>>;
|
|
5
|
+
export declare const SliderContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
export declare const SkymapContainer: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
|
+
export declare const Skymap: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('./Skymap').SkymapProps, never>> & string & Omit<import('react').FunctionComponent<import('./Skymap').SkymapProps>, keyof import('react').Component<any, {}, any>>;
|
|
8
|
+
export declare const ChartTitle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, never>> & string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubin-epo/epo-widget-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Rubin Observatory Education & Public Outreach team React scientific and educational widgets.",
|
|
5
5
|
"author": "Rubin EPO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build": "tsc && vite build",
|
|
23
23
|
"fix-js": "prettier --write \"**/*.{js,jsx}\" && eslint -c .eslintrc.js \"**/*.{js,jsx,ts,tsx}\" --fix",
|
|
24
24
|
"lint-js": "prettier --check \"**/*.{js,jsx}\" & eslint -c .eslintrc.js \"**/*.{js,jsx,ts,tsx}\"",
|
|
25
|
-
"storybook": "storybook dev -p 6007",
|
|
25
|
+
"storybook": "storybook dev -p 6007 --loglevel verbose --debug",
|
|
26
26
|
"build-storybook": "storybook build",
|
|
27
27
|
"build-storybook:production": "yarn build-storybook -o ../../storybook-static/epo-widget-lib",
|
|
28
28
|
"test": "jest --max-workers=2",
|
|
@@ -98,7 +98,9 @@
|
|
|
98
98
|
"react-i18next": "^12.0.0 || ^13.0.0"
|
|
99
99
|
},
|
|
100
100
|
"dependencies": {
|
|
101
|
-
"@
|
|
101
|
+
"@react-three/drei": "^10.7.6",
|
|
102
|
+
"@react-three/fiber": "8",
|
|
103
|
+
"@rubin-epo/epo-react-lib": "^2.10.1",
|
|
102
104
|
"context-filter-polyfill": "^0.3.6",
|
|
103
105
|
"d3-array": "^3.2.4",
|
|
104
106
|
"d3-geo": "^3.1.1",
|
|
@@ -107,6 +109,12 @@
|
|
|
107
109
|
"react-slider": "^2.0.6",
|
|
108
110
|
"skia-canvas": "^1.0.2",
|
|
109
111
|
"styled-components": "^6.1.16",
|
|
112
|
+
"three": "^0.181.0",
|
|
110
113
|
"use-resize-observer": "^9.1.0"
|
|
114
|
+
},
|
|
115
|
+
"resolutions": {
|
|
116
|
+
"semver": "7.3.2",
|
|
117
|
+
"@types/react": "18.3.1",
|
|
118
|
+
"@types/react-dom": "18.3.1"
|
|
111
119
|
}
|
|
112
120
|
}
|