@rubin-epo/epo-widget-lib 1.1.3 → 1.2.3

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 (101) hide show
  1. package/README.MD +4 -1
  2. package/dist/OrbitalSim.cjs +1 -0
  3. package/dist/OrbitalSim.d.ts +3 -0
  4. package/dist/OrbitalSim.js +147 -0
  5. package/dist/_virtual/_commonjsHelpers.cjs +1 -0
  6. package/dist/_virtual/_commonjsHelpers.js +6 -0
  7. package/dist/_virtual/index.cjs +1 -0
  8. package/dist/_virtual/index.js +4 -0
  9. package/dist/_virtual/index2.cjs +1 -0
  10. package/dist/_virtual/index2.js +4 -0
  11. package/dist/_virtual/index3.cjs +1 -0
  12. package/dist/_virtual/index3.js +4 -0
  13. package/dist/_virtual/react-is.development.cjs +1 -0
  14. package/dist/_virtual/react-is.development.js +4 -0
  15. package/dist/_virtual/react-is.production.min.cjs +1 -0
  16. package/dist/_virtual/react-is.production.min.js +4 -0
  17. package/dist/atomic/ImageStack/styles.d.ts +4 -0
  18. package/dist/charts/Unit/Span.d.ts +10 -0
  19. package/dist/charts/Unit/StandardUnit.d.ts +12 -0
  20. package/dist/charts/Unit/StellarUnit.d.ts +12 -0
  21. package/dist/charts/Unit/Sub.d.ts +10 -0
  22. package/dist/charts/Unit/SvgSub.d.ts +10 -0
  23. package/dist/charts/Unit/TSpan.d.ts +10 -0
  24. package/dist/charts/Unit/index.d.ts +9 -0
  25. package/dist/charts/Unit/utilities.d.ts +25 -0
  26. package/dist/layout/Controls/index.d.ts +1 -1
  27. package/dist/localeStrings/en/epo-widget-lib.json +23 -0
  28. package/dist/localeStrings/es/epo-widget-lib.json +2 -1
  29. package/dist/node_modules/classnames/index.cjs +5 -0
  30. package/dist/node_modules/classnames/index.js +42 -0
  31. package/dist/node_modules/object-assign/index.cjs +5 -0
  32. package/dist/node_modules/object-assign/index.js +54 -0
  33. package/dist/node_modules/prop-types/checkPropTypes.cjs +1 -0
  34. package/dist/node_modules/prop-types/checkPropTypes.js +54 -0
  35. package/dist/node_modules/prop-types/factoryWithThrowingShims.cjs +1 -0
  36. package/dist/node_modules/prop-types/factoryWithThrowingShims.js +52 -0
  37. package/dist/node_modules/prop-types/factoryWithTypeCheckers.cjs +2 -0
  38. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +329 -0
  39. package/dist/node_modules/prop-types/index.cjs +1 -0
  40. package/dist/node_modules/prop-types/index.js +15 -0
  41. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.cjs +1 -0
  42. package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
  43. package/dist/node_modules/prop-types/lib/has.cjs +1 -0
  44. package/dist/node_modules/prop-types/lib/has.js +7 -0
  45. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.cjs +8 -0
  46. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +95 -0
  47. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.cjs +8 -0
  48. package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +78 -0
  49. package/dist/node_modules/prop-types/node_modules/react-is/index.cjs +1 -0
  50. package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
  51. package/dist/node_modules/three/examples/jsm/controls/OrbitControls.cjs +1 -0
  52. package/dist/node_modules/three/examples/jsm/controls/OrbitControls.js +458 -0
  53. package/dist/style.css +1 -0
  54. package/dist/widgets/ColorTool/ImageComposite/styles.d.ts +4 -0
  55. package/dist/widgets/ColorTool/styles.d.ts +6 -0
  56. package/dist/widgets/OrbitalSim/Camera.cjs +1 -0
  57. package/dist/widgets/OrbitalSim/Camera.d.ts +10 -0
  58. package/dist/widgets/OrbitalSim/Camera.js +20 -0
  59. package/dist/widgets/OrbitalSim/CameraController.cjs +1 -0
  60. package/dist/widgets/OrbitalSim/CameraController.d.ts +12 -0
  61. package/dist/widgets/OrbitalSim/CameraController.js +31 -0
  62. package/dist/widgets/OrbitalSim/Controls/PlaybackControls.cjs +1 -0
  63. package/dist/widgets/OrbitalSim/Controls/PlaybackControls.d.ts +13 -0
  64. package/dist/widgets/OrbitalSim/Controls/PlaybackControls.js +60 -0
  65. package/dist/widgets/OrbitalSim/Controls/PlaybackControls.module.css.cjs +1 -0
  66. package/dist/widgets/OrbitalSim/Controls/PlaybackControls.module.css.js +7 -0
  67. package/dist/widgets/OrbitalSim/Observation.cjs +1 -0
  68. package/dist/widgets/OrbitalSim/Observation.d.ts +16 -0
  69. package/dist/widgets/OrbitalSim/Observation.js +60 -0
  70. package/dist/widgets/OrbitalSim/Observations.cjs +1 -0
  71. package/dist/widgets/OrbitalSim/Observations.d.ts +16 -0
  72. package/dist/widgets/OrbitalSim/Observations.js +38 -0
  73. package/dist/widgets/OrbitalSim/Orbital.cjs +1 -0
  74. package/dist/widgets/OrbitalSim/Orbital.d.ts +52 -0
  75. package/dist/widgets/OrbitalSim/Orbital.js +256 -0
  76. package/dist/widgets/OrbitalSim/OrbitalDetails.cjs +1 -0
  77. package/dist/widgets/OrbitalSim/OrbitalDetails.d.ts +14 -0
  78. package/dist/widgets/OrbitalSim/OrbitalDetails.js +56 -0
  79. package/dist/widgets/OrbitalSim/OrbitalSim.module.css.cjs +1 -0
  80. package/dist/widgets/OrbitalSim/OrbitalSim.module.css.js +51 -0
  81. package/dist/widgets/OrbitalSim/Orbitals.cjs +1 -0
  82. package/dist/widgets/OrbitalSim/Orbitals.d.ts +48 -0
  83. package/dist/widgets/OrbitalSim/Orbitals.js +147 -0
  84. package/dist/widgets/OrbitalSim/PlaybackSpeed.cjs +1 -0
  85. package/dist/widgets/OrbitalSim/PlaybackSpeed.d.ts +16 -0
  86. package/dist/widgets/OrbitalSim/PlaybackSpeed.js +97 -0
  87. package/dist/widgets/OrbitalSim/PotentialOrbits.cjs +1 -0
  88. package/dist/widgets/OrbitalSim/PotentialOrbits.d.ts +16 -0
  89. package/dist/widgets/OrbitalSim/PotentialOrbits.js +59 -0
  90. package/dist/widgets/OrbitalSim/Sun.cjs +1 -0
  91. package/dist/widgets/OrbitalSim/Sun.d.ts +11 -0
  92. package/dist/widgets/OrbitalSim/Sun.js +35 -0
  93. package/dist/widgets/OrbitalSim/chartColors.module.css.cjs +1 -0
  94. package/dist/widgets/OrbitalSim/chartColors.module.css.js +4 -0
  95. package/dist/widgets/OrbitalSim/index.d.ts +23 -0
  96. package/dist/widgets/OrbitalSim/orbitalUtilities.cjs +1 -0
  97. package/dist/widgets/OrbitalSim/orbitalUtilities.d.ts +69 -0
  98. package/dist/widgets/OrbitalSim/orbitalUtilities.js +142 -0
  99. package/dist/widgets/SupernovaThreeVector/Histogram/index.d.ts +1 -1
  100. package/dist/widgets/SupernovaThreeVector/styles.d.ts +8 -0
  101. package/package.json +11 -3
package/README.MD CHANGED
@@ -22,7 +22,7 @@ After installing the package library, the global styles from `epo-react-lib` wil
22
22
 
23
23
  ```
24
24
  import { GlobalStyles } from "@rubin-epo/epo-react-lib/styles";
25
-
25
+ ```
26
26
 
27
27
  ### Translations
28
28
 
@@ -63,6 +63,9 @@ yarn storybook
63
63
 
64
64
  ## Test
65
65
 
66
+ > [!WARNING]
67
+ > This package's Jest config is not setup to use strict ESM, as a result if you add `"type": "module"` to the `package.json` there will be CommonJS/ESM incompatibility errors.
68
+
66
69
  Each component in EPO Widget Library contains a Jest unit test. Tests should be co-located with component code and their stories and follow the `**.test.[t|j]sx` naming format.
67
70
 
68
71
  ```
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),a=require("react"),e=require("./node_modules/prop-types/index.cjs"),H=require("@react-three/fiber"),J=require("react-i18next"),K=require("./widgets/OrbitalSim/OrbitalDetails.cjs"),Q=require("./widgets/OrbitalSim/CameraController.cjs"),U=require("./widgets/OrbitalSim/Camera.cjs"),W=require("./widgets/OrbitalSim/Orbitals.cjs"),X=require("./widgets/OrbitalSim/Sun.cjs"),Y=require("./widgets/OrbitalSim/PlaybackSpeed.cjs"),$=require("./widgets/OrbitalSim/Controls/PlaybackControls.cjs"),q=require("./widgets/OrbitalSim/OrbitalSim.module.css.cjs");function h({neos:g,activeNeo:C,activeObs:O,selectionCallback:D,paused:n,pov:P,defaultZoom:u,potentialOrbits:m,observations:k,noDetails:T,detailsSet:V,detailsRows:L,refObjs:N,noLabels:R,noControls:z=!1}){const c={min:1157e-8,max:365.25,initial:11.574,step:1},[o,l]=a.useState(!n),[Z,_]=a.useState(null),[w,r]=a.useState(1),[E,S]=a.useState(0),[v,y]=a.useState(n?0:c.initial),[p,d]=a.useState(0),[i,f]=a.useState(0),[j,F]=a.useState(1),{t:x}=J.useTranslation();a.useEffect(()=>{i>0?(y(c.initial),r(1),d(0),f(-1)):i<0&&(d(0),l(!0),f(0))},[i]);const M=s=>{y(+s)},A=()=>{o||r(1),l(!o)},I=()=>{l(s=>!1),f(s=>s+1)},B=s=>{l(!1),r(1),S(b=>b+1)},G=s=>{l(!1),r(-1),S(b=>b+1)};return t.jsx(t.Fragment,{children:t.jsxs("div",{className:q.default.container,children:[!m&&!T&&t.jsx(K.default,{type:V,velocity:Z,rows:L}),!n&&t.jsx(Y.default,{elapsedTime:p,dayPerVizSec:v,speeds:c,sliderOnChangeCallback:M}),!z&&t.jsx($.default,{playing:o,handleStartStop:A,handleNext:B,handlePrevious:G,isDisabled:!1,handleReset:I}),t.jsxs(H.Canvas,{className:q.default["orbital-canvas"],children:[t.jsx(Q.default,{pov:P,reset:i}),t.jsx(U.default,{left:5e3,right:15e3,top:15e3,bottom:-15e3,near:.1,far:3e4,position:[0,0,8e3],defaultZoom:u||1}),t.jsx("ambientLight",{intensity:.9}),t.jsx(W.default,{activeVelocityCallback:_,defaultZoom:u||1,refObjs:N,neos:g,activeNeo:C,activeObs:O,playing:o,stepDirection:w,dayPerVizSec:v,frameOverride:E,potentialOrbits:m,observations:k,selectionCallback:D,elapsedTime:p,setElapsedTime:d,noLabels:R,reset:i,zoomLevel:j,setZoomLevel:F,t:x}),t.jsx(X.default,{zoomLevel:j,defaultZoom:u||1,t:x})]})]})})}h.propTypes={neos:e.default.array,activeNeo:e.default.object,activeObs:e.default.object,selectionCallback:e.default.func,paused:e.default.bool,pov:e.default.string,defaultZoom:e.default.number,potentialOrbits:e.default.bool,observations:e.default.array,noDetails:e.default.bool,noLabels:e.default.bool,detailsSet:e.default.string,detailsRows:e.default.array,refObjs:e.default.array,noControls:e.default.bool};exports.default=h;
@@ -0,0 +1,3 @@
1
+ export * from './widgets/OrbitalSim/index'
2
+ import _default from './widgets/OrbitalSim/index'
3
+ export default _default
@@ -0,0 +1,147 @@
1
+ "use client";
2
+ import { jsx as t, Fragment as K, jsxs as g } from "react/jsx-runtime";
3
+ import { useState as o, useEffect as M } from "react";
4
+ import e from "./node_modules/prop-types/index.js";
5
+ import { Canvas as Q } from "@react-three/fiber";
6
+ import { useTranslation as U } from "react-i18next";
7
+ import W from "./widgets/OrbitalSim/OrbitalDetails.js";
8
+ import X from "./widgets/OrbitalSim/CameraController.js";
9
+ import Y from "./widgets/OrbitalSim/Camera.js";
10
+ import _ from "./widgets/OrbitalSim/Orbitals.js";
11
+ import $ from "./widgets/OrbitalSim/Sun.js";
12
+ import ee from "./widgets/OrbitalSim/PlaybackSpeed.js";
13
+ import te from "./widgets/OrbitalSim/Controls/PlaybackControls.js";
14
+ import O from "./widgets/OrbitalSim/OrbitalSim.module.css.js";
15
+ function oe({
16
+ neos: D,
17
+ activeNeo: P,
18
+ activeObs: j,
19
+ selectionCallback: k,
20
+ paused: n,
21
+ pov: x,
22
+ defaultZoom: c,
23
+ potentialOrbits: d,
24
+ observations: T,
25
+ noDetails: V,
26
+ detailsSet: L,
27
+ detailsRows: N,
28
+ refObjs: z,
29
+ noLabels: R,
30
+ noControls: Z = !1
31
+ }) {
32
+ const m = { min: 1157e-8, max: 365.25, initial: 11.574, step: 1 }, [r, a] = o(!n), [w, E] = o(null), [F, l] = o(1), [A, y] = o(0), [v, u] = o(n ? 0 : m.initial), [S, f] = o(0), [i, p] = o(0), [h, q] = o(1), { t: C } = U();
33
+ M(() => {
34
+ i > 0 ? (u(m.initial), l(1), f(0), p(-1)) : i < 0 && (f(0), a(!0), p(0));
35
+ }, [i]);
36
+ const B = (s) => {
37
+ u(+s);
38
+ }, G = () => {
39
+ r || l(1), a(!r);
40
+ }, H = () => {
41
+ a((s) => !1), p((s) => s + 1);
42
+ }, I = (s) => {
43
+ a(!1), l(1), y((b) => b + 1);
44
+ }, J = (s) => {
45
+ a(!1), l(-1), y((b) => b + 1);
46
+ };
47
+ return /* @__PURE__ */ t(K, { children: /* @__PURE__ */ g("div", { className: O.container, children: [
48
+ !d && !V && /* @__PURE__ */ t(
49
+ W,
50
+ {
51
+ type: L,
52
+ velocity: w,
53
+ rows: N
54
+ }
55
+ ),
56
+ !n && /* @__PURE__ */ t(
57
+ ee,
58
+ {
59
+ elapsedTime: S,
60
+ dayPerVizSec: v,
61
+ speeds: m,
62
+ sliderOnChangeCallback: B
63
+ }
64
+ ),
65
+ !Z && /* @__PURE__ */ t(
66
+ te,
67
+ {
68
+ playing: r,
69
+ handleStartStop: G,
70
+ handleNext: I,
71
+ handlePrevious: J,
72
+ isDisabled: !1,
73
+ handleReset: H
74
+ }
75
+ ),
76
+ /* @__PURE__ */ g(Q, { className: O["orbital-canvas"], children: [
77
+ /* @__PURE__ */ t(X, { pov: x, reset: i }),
78
+ /* @__PURE__ */ t(
79
+ Y,
80
+ {
81
+ left: 5e3,
82
+ right: 15e3,
83
+ top: 15e3,
84
+ bottom: -15e3,
85
+ near: 0.1,
86
+ far: 3e4,
87
+ position: [0, 0, 8e3],
88
+ defaultZoom: c || 1
89
+ }
90
+ ),
91
+ /* @__PURE__ */ t("ambientLight", { intensity: 0.9 }),
92
+ /* @__PURE__ */ t(
93
+ _,
94
+ {
95
+ activeVelocityCallback: E,
96
+ defaultZoom: c || 1,
97
+ refObjs: z,
98
+ neos: D,
99
+ activeNeo: P,
100
+ activeObs: j,
101
+ playing: r,
102
+ stepDirection: F,
103
+ dayPerVizSec: v,
104
+ frameOverride: A,
105
+ potentialOrbits: d,
106
+ observations: T,
107
+ selectionCallback: k,
108
+ elapsedTime: S,
109
+ setElapsedTime: f,
110
+ noLabels: R,
111
+ reset: i,
112
+ zoomLevel: h,
113
+ setZoomLevel: q,
114
+ t: C
115
+ }
116
+ ),
117
+ /* @__PURE__ */ t(
118
+ $,
119
+ {
120
+ zoomLevel: h,
121
+ defaultZoom: c || 1,
122
+ t: C
123
+ }
124
+ )
125
+ ] })
126
+ ] }) });
127
+ }
128
+ oe.propTypes = {
129
+ neos: e.array,
130
+ activeNeo: e.object,
131
+ activeObs: e.object,
132
+ selectionCallback: e.func,
133
+ paused: e.bool,
134
+ pov: e.string,
135
+ defaultZoom: e.number,
136
+ potentialOrbits: e.bool,
137
+ observations: e.array,
138
+ noDetails: e.bool,
139
+ noLabels: e.bool,
140
+ detailsSet: e.string,
141
+ detailsRows: e.array,
142
+ refObjs: e.array,
143
+ noControls: e.bool
144
+ };
145
+ export {
146
+ oe as default
147
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
4
+ export {
5
+ e as getDefaultExportFromCjs
6
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1,4 @@
1
+ var p = { exports: {} };
2
+ export {
3
+ p as __module
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1,4 @@
1
+ var e = { exports: {} };
2
+ export {
3
+ e as __module
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
@@ -0,0 +1,4 @@
1
+ var s = { exports: {} };
2
+ export {
3
+ s as __module
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const StackContainer: 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 StackedImage: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>> & string;
4
+ export declare const StackLoader: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('@rubin-epo/epo-react-lib/CircularLoader').CircularLoaderProps, never>> & string & Omit<import('react').FunctionComponent<import('@rubin-epo/epo-react-lib/CircularLoader').CircularLoaderProps>, keyof import('react').Component<any, {}, any>>;
@@ -0,0 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default Span;
3
+ declare function Span({ children }: {
4
+ children: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace Span {
7
+ namespace propTypes {
8
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ }
10
+ }
@@ -0,0 +1,12 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default StandardUnit;
3
+ declare function StandardUnit({ type, isSvg }: {
4
+ type: any;
5
+ isSvg: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace StandardUnit {
8
+ namespace propTypes {
9
+ let type: PropTypes.Requireable<string>;
10
+ let isSvg: PropTypes.Requireable<boolean>;
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default StellarUnit;
3
+ declare function StellarUnit({ type, isSvg }: {
4
+ type: any;
5
+ isSvg: any;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ declare namespace StellarUnit {
8
+ namespace propTypes {
9
+ let type: PropTypes.Requireable<string>;
10
+ let isSvg: PropTypes.Requireable<boolean>;
11
+ }
12
+ }
@@ -0,0 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default Sub;
3
+ declare function Sub({ children }: {
4
+ children: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace Sub {
7
+ namespace propTypes {
8
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default SvgSub;
3
+ declare function SvgSub({ children }: {
4
+ children: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace SvgSub {
7
+ namespace propTypes {
8
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default TSpan;
3
+ declare function TSpan({ children }: {
4
+ children: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare namespace TSpan {
7
+ namespace propTypes {
8
+ let children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
9
+ }
10
+ }
@@ -0,0 +1,9 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ export default Unit;
3
+ declare function Unit(props: any): any;
4
+ declare namespace Unit {
5
+ namespace propTypes {
6
+ let type: PropTypes.Requireable<string>;
7
+ let isSvg: PropTypes.Requireable<boolean>;
8
+ }
9
+ }
@@ -0,0 +1,25 @@
1
+ export namespace units {
2
+ let hubbleConstant: string;
3
+ let temperature: string;
4
+ let luminosity: string;
5
+ let stellarMass: string;
6
+ let mass: string;
7
+ let lifetime: string;
8
+ let radius: string;
9
+ let count: string;
10
+ let distance: string;
11
+ let velocity: string;
12
+ let velocity_large: string;
13
+ let inclination: string;
14
+ let semimajor_axis: string;
15
+ let moid: string;
16
+ let diameter: string;
17
+ let craterDiameter: string;
18
+ let craterDepth: string;
19
+ let kineticEnergy: string;
20
+ let volume: string;
21
+ let density: string;
22
+ let overPressure: string;
23
+ let observerDistance: string;
24
+ }
25
+ export function renderUnit(type: any): any;
@@ -1,7 +1,7 @@
1
1
  import { FunctionComponent, ReactNode } from 'react';
2
2
  import { Ratios } from '../AspectRatio';
3
3
 
4
- interface WidgetControlsProps {
4
+ export interface WidgetControlsProps {
5
5
  widget: ReactNode;
6
6
  controls?: ReactNode;
7
7
  ratio?: Ratios;
@@ -3,6 +3,7 @@
3
3
  "controls": {
4
4
  "backward": "Rewind",
5
5
  "forward": "Forward",
6
+ "reset": "Reset",
6
7
  "play": "Play",
7
8
  "pause": "Pause"
8
9
  }
@@ -20,6 +21,10 @@
20
21
  "second_other": "Seconds",
21
22
  "year_one": "Year",
22
23
  "year_other": "Years"
24
+ },
25
+ "interval": {
26
+ "year": "Years",
27
+ "day": "Days"
23
28
  }
24
29
  },
25
30
  "filterTool": {
@@ -148,5 +153,23 @@
148
153
  "textValue": "{{value}} magnitude offset"
149
154
  }
150
155
  }
156
+ },
157
+ "orbital_sim": {
158
+ "astronomy": {
159
+ "orbital_bodies": {
160
+ "sun": "Sun"
161
+ }
162
+ },
163
+ "playback": {
164
+ "time_equivalence": "1 sec is 1 year",
165
+ "normal_time": "Normal Time",
166
+ "time_step": "Time Step"
167
+ }
168
+ },
169
+ "planets": {
170
+ "jupiter": "Jupiter",
171
+ "earth": "Earth",
172
+ "mars": "Mars",
173
+ "neptune": "Neptune"
151
174
  }
152
175
  }
@@ -77,7 +77,8 @@
77
77
  "backward": "Regresar",
78
78
  "forward": "Adelantar",
79
79
  "pause": "Pausar",
80
- "play": "Reproducir"
80
+ "play": "Reproducir",
81
+ "reset": "Reset",
81
82
  }
82
83
  },
83
84
  "isochrone_plot": {
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../../_virtual/_commonjsHelpers.cjs"),l=require("../../_virtual/index3.cjs");/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */(function(r){(function(){var c={}.hasOwnProperty;function t(){for(var s=[],n=0;n<arguments.length;n++){var e=arguments[n];if(e){var o=typeof e;if(o==="string"||o==="number")s.push(e);else if(Array.isArray(e)){if(e.length){var u=t.apply(null,e);u&&s.push(u)}}else if(o==="object"){if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]")){s.push(e.toString());continue}for(var i in e)c.call(e,i)&&e[i]&&s.push(i)}}}return s.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(l.__module);var f=l.__module.exports;const p=a.getDefaultExportFromCjs(f);exports.default=p;
@@ -0,0 +1,42 @@
1
+ import { getDefaultExportFromCjs as u } from "../../_virtual/_commonjsHelpers.js";
2
+ import { __module as f } from "../../_virtual/index3.js";
3
+ /*!
4
+ Copyright (c) 2018 Jed Watson.
5
+ Licensed under the MIT License (MIT), see
6
+ http://jedwatson.github.io/classnames
7
+ */
8
+ (function(r) {
9
+ (function() {
10
+ var l = {}.hasOwnProperty;
11
+ function s() {
12
+ for (var n = [], o = 0; o < arguments.length; o++) {
13
+ var t = arguments[o];
14
+ if (t) {
15
+ var e = typeof t;
16
+ if (e === "string" || e === "number")
17
+ n.push(t);
18
+ else if (Array.isArray(t)) {
19
+ if (t.length) {
20
+ var a = s.apply(null, t);
21
+ a && n.push(a);
22
+ }
23
+ } else if (e === "object") {
24
+ if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) {
25
+ n.push(t.toString());
26
+ continue;
27
+ }
28
+ for (var i in t)
29
+ l.call(t, i) && t[i] && n.push(i);
30
+ }
31
+ }
32
+ }
33
+ return n.join(" ");
34
+ }
35
+ r.exports ? (s.default = s, r.exports = s) : window.classNames = s;
36
+ })();
37
+ })(f);
38
+ var c = f.exports;
39
+ const v = /* @__PURE__ */ u(c);
40
+ export {
41
+ v as default
42
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */var u,f;function j(){if(f)return u;f=1;var i=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;function O(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function g(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var c={},r=0;r<10;r++)c["_"+String.fromCharCode(r)]=r;var a=Object.getOwnPropertyNames(c).map(function(e){return c[e]});if(a.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return u=g()?Object.assign:function(t,c){for(var r,a=O(t),n,e=1;e<arguments.length;e++){r=Object(arguments[e]);for(var s in r)b.call(r,s)&&(a[s]=r[s]);if(i){n=i(r);for(var o=0;o<n.length;o++)l.call(r,n[o])&&(a[n[o]]=r[n[o]])}}return a},u}exports.__require=j;
@@ -0,0 +1,54 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+ var f, i;
7
+ function p() {
8
+ if (i) return f;
9
+ i = 1;
10
+ var u = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
11
+ function O(n) {
12
+ if (n == null)
13
+ throw new TypeError("Object.assign cannot be called with null or undefined");
14
+ return Object(n);
15
+ }
16
+ function j() {
17
+ try {
18
+ if (!Object.assign)
19
+ return !1;
20
+ var n = new String("abc");
21
+ if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
22
+ return !1;
23
+ for (var s = {}, r = 0; r < 10; r++)
24
+ s["_" + String.fromCharCode(r)] = r;
25
+ var a = Object.getOwnPropertyNames(s).map(function(e) {
26
+ return s[e];
27
+ });
28
+ if (a.join("") !== "0123456789")
29
+ return !1;
30
+ var t = {};
31
+ return "abcdefghijklmnopqrst".split("").forEach(function(e) {
32
+ t[e] = e;
33
+ }), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
34
+ } catch {
35
+ return !1;
36
+ }
37
+ }
38
+ return f = j() ? Object.assign : function(n, s) {
39
+ for (var r, a = O(n), t, e = 1; e < arguments.length; e++) {
40
+ r = Object(arguments[e]);
41
+ for (var c in r)
42
+ b.call(r, c) && (a[c] = r[c]);
43
+ if (u) {
44
+ t = u(r);
45
+ for (var o = 0; o < t.length; o++)
46
+ l.call(r, t[o]) && (a[t[o]] = r[t[o]]);
47
+ }
48
+ }
49
+ return a;
50
+ }, f;
51
+ }
52
+ export {
53
+ p as __require
54
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("./lib/ReactPropTypesSecret.cjs"),_=require("./lib/has.cjs");var u,p;function O(){if(p)return u;p=1;var o=function(){};if(process.env.NODE_ENV!=="production"){var l=E.__require(),a={},y=_.__require();o=function(r){var t="Warning: "+r;typeof console<"u"&&console.error(t);try{throw new Error(t)}catch{}}}function f(r,t,i,s,c){if(process.env.NODE_ENV!=="production"){for(var e in r)if(y(r,e)){var n;try{if(typeof r[e]!="function"){var h=Error((s||"React class")+": "+i+" type `"+e+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[e]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}n=r[e](t,e,s,i,null,l)}catch(d){n=d}if(n&&!(n instanceof Error)&&o((s||"React class")+": type specification of "+i+" `"+e+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof n+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),n instanceof Error&&!(n.message in a)){a[n.message]=!0;var v=c?c():"";o("Failed "+i+" type: "+n.message+(v??""))}}}}return f.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},u=f,u}exports.__require=O;
@@ -0,0 +1,54 @@
1
+ import { __require as E } from "./lib/ReactPropTypesSecret.js";
2
+ import { __require as _ } from "./lib/has.js";
3
+ var f, v;
4
+ function P() {
5
+ if (v) return f;
6
+ v = 1;
7
+ var o = function() {
8
+ };
9
+ if (process.env.NODE_ENV !== "production") {
10
+ var y = E(), t = {}, d = _();
11
+ o = function(n) {
12
+ var a = "Warning: " + n;
13
+ typeof console < "u" && console.error(a);
14
+ try {
15
+ throw new Error(a);
16
+ } catch {
17
+ }
18
+ };
19
+ }
20
+ function u(n, a, i, s, c) {
21
+ if (process.env.NODE_ENV !== "production") {
22
+ for (var e in n)
23
+ if (d(n, e)) {
24
+ var r;
25
+ try {
26
+ if (typeof n[e] != "function") {
27
+ var h = Error(
28
+ (s || "React class") + ": " + i + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
29
+ );
30
+ throw h.name = "Invariant Violation", h;
31
+ }
32
+ r = n[e](a, e, s, i, null, y);
33
+ } catch (l) {
34
+ r = l;
35
+ }
36
+ if (r && !(r instanceof Error) && o(
37
+ (s || "React class") + ": type specification of " + i + " `" + e + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof r + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
38
+ ), r instanceof Error && !(r.message in t)) {
39
+ t[r.message] = !0;
40
+ var p = c ? c() : "";
41
+ o(
42
+ "Failed " + i + " type: " + r.message + (p ?? "")
43
+ );
44
+ }
45
+ }
46
+ }
47
+ }
48
+ return u.resetWarningCache = function() {
49
+ process.env.NODE_ENV !== "production" && (t = {});
50
+ }, f = u, f;
51
+ }
52
+ export {
53
+ P as __require
54
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./lib/ReactPropTypesSecret.cjs");var n,p;function y(){if(p)return n;p=1;var c=u.__require();function o(){}function i(){}return i.resetWarningCache=o,n=function(){function e(h,m,f,l,T,s){if(s!==c){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:i,resetWarningCache:o};return t.PropTypes=t,t},n}exports.__require=y;
@@ -0,0 +1,52 @@
1
+ import { __require as u } from "./lib/ReactPropTypesSecret.js";
2
+ var o, p;
3
+ function g() {
4
+ if (p) return o;
5
+ p = 1;
6
+ var c = u();
7
+ function n() {
8
+ }
9
+ function i() {
10
+ }
11
+ return i.resetWarningCache = n, o = function() {
12
+ function e(h, y, m, f, l, s) {
13
+ if (s !== c) {
14
+ var a = new Error(
15
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
16
+ );
17
+ throw a.name = "Invariant Violation", a;
18
+ }
19
+ }
20
+ e.isRequired = e;
21
+ function r() {
22
+ return e;
23
+ }
24
+ var t = {
25
+ array: e,
26
+ bigint: e,
27
+ bool: e,
28
+ func: e,
29
+ number: e,
30
+ object: e,
31
+ string: e,
32
+ symbol: e,
33
+ any: e,
34
+ arrayOf: r,
35
+ element: e,
36
+ elementType: e,
37
+ instanceOf: r,
38
+ node: e,
39
+ objectOf: r,
40
+ oneOf: r,
41
+ oneOfType: r,
42
+ shape: r,
43
+ exact: r,
44
+ checkPropTypes: i,
45
+ resetWarningCache: n
46
+ };
47
+ return t.PropTypes = t, t;
48
+ }, o;
49
+ }
50
+ export {
51
+ g as __require
52
+ };