@rubin-epo/epo-widget-lib 1.3.0 → 2.0.1
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/ColorTool.js +3 -3
- package/dist/IsochronePlot.js +3 -3
- package/dist/atomic/Blinker/Blinker.cjs +1 -1
- package/dist/atomic/Blinker/Blinker.js +35 -36
- package/dist/atomic/Blinker/Controls/styles.d.ts +0 -1
- package/dist/atomic/Blinker/styles.d.ts +0 -1
- package/dist/atomic/ElapsedTime/ElapsedTime.cjs +1 -1
- package/dist/atomic/ElapsedTime/ElapsedTime.js +18 -19
- package/dist/atomic/ElapsedTime/styles.d.ts +0 -1
- package/dist/atomic/ImageStack/index.cjs +1 -1
- package/dist/atomic/ImageStack/index.js +25 -26
- package/dist/atomic/ImageStack/styles.d.ts +0 -1
- package/dist/atomic/LiveRegion/styles.d.ts +0 -1
- package/dist/atomic/Loader/styles.d.ts +0 -1
- package/dist/atomic/PlaybackControl/PlaybackControl.cjs +1 -1
- package/dist/atomic/PlaybackControl/PlaybackControl.js +13 -14
- package/dist/atomic/PlaybackControl/styles.d.ts +0 -1
- package/dist/atomic/PlotWrapper/styles.d.ts +0 -1
- package/dist/charts/Base/styles.d.ts +0 -1
- package/dist/charts/Points/ErrorBar.cjs +1 -1
- package/dist/charts/Points/ErrorBar.js +33 -33
- package/dist/charts/Readout/index.cjs +1 -1
- package/dist/charts/Readout/index.js +25 -18
- package/dist/charts/Readout/styles.d.ts +0 -1
- package/dist/charts/ScatterPlot/index.cjs +1 -1
- package/dist/charts/ScatterPlot/index.js +53 -50
- package/dist/charts/ScatterPlot/styles.d.ts +1 -2
- package/dist/charts/Tooltip/styles.d.ts +7 -8
- package/dist/charts/Unit/Span.d.ts +1 -2
- package/dist/charts/Unit/StandardUnit.d.ts +2 -3
- package/dist/charts/Unit/StellarUnit.d.ts +2 -3
- package/dist/charts/Unit/Sub.d.ts +1 -2
- package/dist/charts/Unit/SvgSub.d.ts +1 -2
- package/dist/charts/Unit/TSpan.d.ts +1 -2
- package/dist/charts/Unit/index.d.ts +2 -3
- package/dist/charts/styles.d.ts +0 -1
- package/dist/hooks/useInterval.cjs +1 -1
- package/dist/hooks/useInterval.js +3 -3
- package/dist/hooks/usePrevious.cjs +1 -1
- package/dist/hooks/usePrevious.d.ts +1 -1
- package/dist/hooks/usePrevious.js +3 -3
- package/dist/layout/AspectRatio/styles.d.ts +0 -1
- package/dist/layout/Controls/styles.d.ts +2 -3
- package/dist/node_modules/classnames/index.cjs +2 -2
- package/dist/node_modules/classnames/index.js +30 -30
- package/dist/node_modules/three/examples/jsm/controls/OrbitControls.js +3 -3
- package/dist/style.css +1 -1
- package/dist/styles/svg.d.ts +0 -1
- package/dist/widgets/CameraFilter/CameraFilter.cjs +1 -1
- package/dist/widgets/CameraFilter/CameraFilter.js +30 -31
- package/dist/widgets/CameraFilter/styles.d.ts +1 -2
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +1 -4
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.d.ts +1 -1
- package/dist/widgets/ColorTool/ImageComposite/styles.d.ts +0 -1
- package/dist/widgets/ColorTool/lib/canvas.d.ts +1 -1
- package/dist/widgets/ColorTool/lib/utils.d.ts +2 -2
- package/dist/widgets/ColorTool/styles.d.ts +0 -1
- package/dist/widgets/FilterTool/styles.d.ts +1 -2
- package/dist/widgets/LightCurvePlot/Plot/index.js +3 -3
- package/dist/widgets/LightCurvePlot/Plot/styles.d.ts +0 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/styles.d.ts +0 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +45 -46
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +0 -1
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.js +5 -5
- package/dist/widgets/LightCurvePlot/helpers.cjs +1 -1
- package/dist/widgets/LightCurvePlot/helpers.js +4 -4
- package/dist/widgets/OrbitalSim/Camera/Camera.cjs +1 -0
- package/dist/widgets/OrbitalSim/{Camera.d.ts → Camera/Camera.d.ts} +1 -2
- package/dist/widgets/OrbitalSim/{Camera.js → Camera/Camera.js} +1 -1
- package/dist/widgets/OrbitalSim/Camera/CameraController.cjs +1 -0
- package/dist/widgets/OrbitalSim/{CameraController.d.ts → Camera/CameraController.d.ts} +2 -3
- package/dist/widgets/OrbitalSim/{CameraController.js → Camera/CameraController.js} +2 -2
- package/dist/widgets/OrbitalSim/Context/index.cjs +1 -1
- package/dist/widgets/OrbitalSim/Context/index.js +4 -5
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.cjs +1 -1
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.js +20 -20
- package/dist/widgets/OrbitalSim/Controls/PlaybackSpeed.cjs +1 -0
- package/dist/widgets/OrbitalSim/{PlaybackSpeed.d.ts → Controls/PlaybackSpeed.d.ts} +4 -5
- package/dist/widgets/OrbitalSim/Controls/PlaybackSpeed.js +95 -0
- package/dist/widgets/OrbitalSim/Controls/styles.cjs +114 -0
- package/dist/widgets/OrbitalSim/Controls/styles.d.ts +14 -0
- package/dist/widgets/OrbitalSim/Controls/styles.js +132 -0
- package/dist/widgets/OrbitalSim/Observations/Observation.cjs +1 -0
- package/dist/widgets/OrbitalSim/{Observation.d.ts → Observations/Observation.d.ts} +2 -3
- package/dist/widgets/OrbitalSim/{Observation.js → Observations/Observation.js} +4 -4
- package/dist/widgets/OrbitalSim/Observations/Observations.cjs +1 -0
- package/dist/widgets/OrbitalSim/{Observations.d.ts → Observations/Observations.d.ts} +2 -3
- package/dist/widgets/OrbitalSim/{Observations.js → Observations/Observations.js} +3 -3
- package/dist/widgets/OrbitalSim/OrbitalSim.cjs +1 -1
- package/dist/widgets/OrbitalSim/OrbitalSim.js +89 -94
- package/dist/widgets/OrbitalSim/OrbitalSim.module.css.cjs +1 -1
- package/dist/widgets/OrbitalSim/OrbitalSim.module.css.js +5 -47
- package/dist/widgets/OrbitalSim/Orbitals/Orbital.cjs +1 -0
- package/dist/widgets/OrbitalSim/Orbitals/Orbital.d.ts +46 -0
- package/dist/widgets/OrbitalSim/Orbitals/Orbital.js +254 -0
- package/dist/widgets/OrbitalSim/Orbitals/OrbitalDetails.cjs +1 -0
- package/dist/widgets/OrbitalSim/Orbitals/OrbitalDetails.js +42 -0
- package/dist/widgets/OrbitalSim/Orbitals/Orbitals.cjs +1 -0
- package/dist/widgets/OrbitalSim/Orbitals/Orbitals.d.ts +30 -0
- package/dist/widgets/OrbitalSim/{Orbitals.js → Orbitals/Orbitals.js} +31 -34
- package/dist/widgets/OrbitalSim/Orbitals/PotentialOrbits.cjs +1 -0
- package/dist/widgets/OrbitalSim/{PotentialOrbits.d.ts → Orbitals/PotentialOrbits.d.ts} +1 -2
- package/dist/widgets/OrbitalSim/{PotentialOrbits.js → Orbitals/PotentialOrbits.js} +5 -5
- package/dist/widgets/OrbitalSim/Orbitals/styles.cjs +53 -0
- package/dist/widgets/OrbitalSim/Orbitals/styles.d.ts +9 -0
- package/dist/widgets/OrbitalSim/Orbitals/styles.js +66 -0
- package/dist/widgets/OrbitalSim/Sun.cjs +1 -1
- package/dist/widgets/OrbitalSim/Sun.d.ts +6 -9
- package/dist/widgets/OrbitalSim/Sun.js +11 -14
- package/dist/widgets/OrbitalSim/orbitalUtilities.cjs +1 -1
- package/dist/widgets/OrbitalSim/orbitalUtilities.js +29 -37
- package/dist/widgets/OrbitalSim/styles.cjs +48 -0
- package/dist/widgets/OrbitalSim/styles.d.ts +5 -0
- package/dist/widgets/OrbitalSim/styles.js +56 -0
- package/dist/widgets/SourceSelector/Message/Message.cjs +1 -1
- package/dist/widgets/SourceSelector/Message/Message.js +10 -11
- package/dist/widgets/SourceSelector/Message/styles.d.ts +1 -2
- package/dist/widgets/SourceSelector/SelectionList/index.cjs +1 -1
- package/dist/widgets/SourceSelector/SelectionList/index.js +12 -13
- package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +0 -1
- package/dist/widgets/SourceSelector/SourceMap/styles.d.ts +0 -1
- package/dist/widgets/SourceSelector/styles.d.ts +1 -2
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +0 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +45 -39
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +0 -1
- package/dist/widgets/SupernovaThreeVector/styles.d.ts +0 -1
- package/dist/widgets/ViewIndicator/styles.d.ts +0 -1
- package/package.json +16 -14
- package/dist/widgets/OrbitalSim/Camera.cjs +0 -1
- package/dist/widgets/OrbitalSim/CameraController.cjs +0 -1
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.module.css.cjs +0 -1
- package/dist/widgets/OrbitalSim/Controls/PlaybackControls.module.css.js +0 -7
- package/dist/widgets/OrbitalSim/Observation.cjs +0 -1
- package/dist/widgets/OrbitalSim/Observations.cjs +0 -1
- package/dist/widgets/OrbitalSim/Orbital.cjs +0 -1
- package/dist/widgets/OrbitalSim/Orbital.d.ts +0 -49
- package/dist/widgets/OrbitalSim/Orbital.js +0 -255
- package/dist/widgets/OrbitalSim/OrbitalDetails.cjs +0 -1
- package/dist/widgets/OrbitalSim/OrbitalDetails.js +0 -53
- package/dist/widgets/OrbitalSim/Orbitals.cjs +0 -1
- package/dist/widgets/OrbitalSim/Orbitals.d.ts +0 -33
- package/dist/widgets/OrbitalSim/PlaybackSpeed.cjs +0 -1
- package/dist/widgets/OrbitalSim/PlaybackSpeed.js +0 -96
- package/dist/widgets/OrbitalSim/PotentialOrbits.cjs +0 -1
- /package/dist/widgets/OrbitalSim/{OrbitalDetails.d.ts → Orbitals/OrbitalDetails.d.ts} +0 -0
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
2
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
3
3
|
import { useEffect as f } from "react";
|
|
4
4
|
import { Message as u } from "./styles.js";
|
|
5
|
-
const
|
|
5
|
+
const a = ({
|
|
6
6
|
children: t,
|
|
7
7
|
isVisible: e = !1,
|
|
8
|
-
onMessageChangeCallback:
|
|
9
|
-
forIds:
|
|
8
|
+
onMessageChangeCallback: r,
|
|
9
|
+
forIds: s
|
|
10
10
|
}) => (f(() => {
|
|
11
11
|
if (e) {
|
|
12
|
-
const
|
|
13
|
-
|
|
12
|
+
const o = setTimeout(() => {
|
|
13
|
+
r && r();
|
|
14
14
|
}, 1800);
|
|
15
|
-
return () => clearTimeout(
|
|
15
|
+
return () => clearTimeout(o);
|
|
16
16
|
}
|
|
17
|
-
}, [t, e]), /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
const i = r;
|
|
17
|
+
}, [t, e]), /* @__PURE__ */ m(u, { forIds: s, $isOpen: e, children: t }));
|
|
18
|
+
a.displayName = "Widgets.SourceSelector.Message";
|
|
20
19
|
export {
|
|
21
|
-
|
|
20
|
+
a as default
|
|
22
21
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Message: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('@rubin-epo/epo-react-lib/Toast').ToastProps & {
|
|
3
|
-
children?: import('react').ReactNode;
|
|
2
|
+
children?: import('react').ReactNode | undefined;
|
|
4
3
|
}, {
|
|
5
4
|
$isOpen: boolean;
|
|
6
5
|
}>> & string & Omit<import('react').FunctionComponent<import('react').PropsWithChildren<import('@rubin-epo/epo-react-lib/Toast').ToastProps>>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react-i18next"),s=require("./styles.cjs"),a=require("../../../atomic/Button/patterns/Reset.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),u=require("react-i18next"),s=require("./styles.cjs"),a=require("../../../atomic/Button/patterns/Reset.cjs"),l=({className:n,onRemoveCallback:c,sources:t=[]})=>{const{t:r}=u.useTranslation();return e.jsxs(s.SelectionWrapper,{children:[t.length>0&&e.jsx(s.SelectionList,{className:n,children:t.map(({type:o,id:i})=>e.jsxs(s.DescriptionWrapper,{children:[e.jsx("dt",{children:r("source_selector.selected_source",{type:r(`source_selector.sources.${o}`)})}),e.jsx("dd",{children:i})]},i))}),e.jsx(a.default,{isDisabled:t.length<1,onResetCallback:c})]})};l.displayName="Widgets.SelectionList";exports.default=l;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { SelectionWrapper as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
className:
|
|
3
|
+
import { useTranslation as c } from "react-i18next";
|
|
4
|
+
import { SelectionWrapper as a, SelectionList as p, DescriptionWrapper as d } from "./styles.js";
|
|
5
|
+
import m from "../../../atomic/Button/patterns/Reset.js";
|
|
6
|
+
const u = ({
|
|
7
|
+
className: o,
|
|
8
8
|
onRemoveCallback: l,
|
|
9
9
|
sources: t = []
|
|
10
10
|
}) => {
|
|
11
|
-
const { t: r } =
|
|
12
|
-
return /* @__PURE__ */ s(
|
|
13
|
-
t.length > 0 && /* @__PURE__ */ e(
|
|
11
|
+
const { t: r } = c();
|
|
12
|
+
return /* @__PURE__ */ s(a, { children: [
|
|
13
|
+
t.length > 0 && /* @__PURE__ */ e(p, { className: o, children: t.map(({ type: n, id: i }) => /* @__PURE__ */ s(d, { children: [
|
|
14
14
|
/* @__PURE__ */ e("dt", { children: r("source_selector.selected_source", {
|
|
15
|
-
type: r(`source_selector.sources.${
|
|
15
|
+
type: r(`source_selector.sources.${n}`)
|
|
16
16
|
}) }),
|
|
17
17
|
/* @__PURE__ */ e("dd", { children: i })
|
|
18
18
|
] }, i)) }),
|
|
19
19
|
/* @__PURE__ */ e(
|
|
20
|
-
|
|
20
|
+
m,
|
|
21
21
|
{
|
|
22
22
|
isDisabled: t.length < 1,
|
|
23
23
|
onResetCallback: l
|
|
@@ -25,8 +25,7 @@ const o = ({
|
|
|
25
25
|
)
|
|
26
26
|
] });
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
const g = o;
|
|
28
|
+
u.displayName = "Widgets.SelectionList";
|
|
30
29
|
export {
|
|
31
|
-
|
|
30
|
+
u as default
|
|
32
31
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SelectionWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
2
|
export declare const SelectionList: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDListElement>, HTMLDListElement>, never>> & string;
|
|
4
3
|
export declare const DescriptionWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const SVG: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGSVGElement>, never>> & string;
|
|
3
2
|
export declare const Point: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGCircleElement>, never>> & string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const BackgroundBlinker: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../../atomic/Blinker/Blinker').BlinkerProps & {
|
|
3
|
-
children?: import('react').ReactNode;
|
|
2
|
+
children?: import('react').ReactNode | undefined;
|
|
4
3
|
}, never>> & string & Omit<import('react').FunctionComponent<import('react').PropsWithChildren<import('../../atomic/Blinker/Blinker').BlinkerProps>>, keyof import('react').Component<any, {}, any>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),b=require("react"),_=require("d3-geo-projection"),S=require("d3-geo"),M=require("d3-array"),E=require("../../../charts/Base/index.cjs");require("../../../charts/XAxis/index.cjs");require("../../../charts/YAxis/index.cjs");require("../../../charts/Guidelines/index.cjs");const N=require("../../../charts/Tooltip/index.cjs");require("../../../charts/Bars/index.cjs");require("../../../charts/Viewport/index.cjs");require("../../../charts/ScatterPlot/index.cjs");const U=require("../../../atomic/ImageStack/index.cjs"),r=require("./styles.cjs"),y=({className:L,objects:p=[],images:v=[],visibleImages:w=[],describedById:G})=>{const[O,P]=b.useState(!1),[x,f]=b.useState(),l=600,c=300,n={top:20,right:0,bottom:20,left:20},W=l+n.right+n.left,$=c+n.top+n.bottom,d=15,u=30,j=-90,m=90,g=-180,q=180,h=2,i=_.geoAitoff(),s=S.geoGraticule();s.step([u,d]),s.extent([[g,j],[q,m]]),i.fitExtent([[n.left,n.top],[n.left+l-h,n.top+c]],s.outline());const B=M.range(j+d,m,d),A=M.range(g+u,q,u),C=S.geoPath(i).pointRadius(6),a=t=>C(t)||void 0,o=typeof x<"u"?p[x]:void 0,k=(o?i([o==null?void 0:o.long,o==null?void 0:o.lat]):[0,0])||[0,0];return e.jsxs(E.default,{width:W,height:$,className:L,children:[e.jsx("mask",{id:"imageMask",children:e.jsx("path",{d:a(s.outline()),fill:"white"})}),e.jsx(r.Background,{d:a(s.outline())}),e.jsx(r.Graticule,{d:a(s())}),e.jsx(r.ImageStackerWrapper,{style:{"--image-stack-opacity":O&&1},x:n.left,y:n.top,width:l-h,height:c,mask:"url(#imageMask)",children:e.jsx(U.default,{images:v,describedById:G,visible:w,loadCallback:()=>P(!0),showBackdrop:!1,showLoader:!1})}),e.jsx("g",{children:p.map(({id:t,lat:H,long:R},T)=>e.jsx(r.UserObject,{d:a({type:"Point",coordinates:[R,H]}),onMouseOver:()=>f(T),onMouseOut:()=>f(void 0)},t))}),e.jsx("g",{"aria-hidden":"true",children:B.map(t=>t===0?null:e.jsxs(r.LatLabel,{style:{dominantBaseline:t>0?"text-after-edge":"text-before-edge"},transform:`translate(${i([g,t])})`,children:[t,"°"]},t))}),e.jsx("g",{"aria-hidden":"true",children:A.map(t=>e.jsxs(r.LongLabel,{transform:`translate(${i([t,0])})`,children:[t,"°"]},t))}),e.jsx(r.Outline,{strokeWidth:h,d:a(s.outline())}),e.jsx(N.default,{visible:!!o,x:k[0],y:k[1],children:o==null?void 0:o.id})]})};y.displayName="Widgets.SupernovaThreeVector.Skymap";exports.default=y;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as h, jsx as
|
|
2
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { useState as L } from "react";
|
|
4
4
|
import { geoAitoff as E } from "d3-geo-projection";
|
|
5
5
|
import { geoGraticule as N, geoPath as R } from "d3-geo";
|
|
6
6
|
import { range as M } from "d3-array";
|
|
7
|
-
import U from "../../../
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import U from "../../../charts/Base/index.js";
|
|
8
|
+
import "../../../charts/XAxis/index.js";
|
|
9
|
+
import "../../../charts/YAxis/index.js";
|
|
10
|
+
import "../../../charts/Guidelines/index.js";
|
|
11
|
+
import V from "../../../charts/Tooltip/index.js";
|
|
12
|
+
import "../../../charts/Bars/index.js";
|
|
13
|
+
import "../../../charts/Viewport/index.js";
|
|
14
|
+
import "../../../charts/ScatterPlot/index.js";
|
|
15
|
+
import q from "../../../atomic/ImageStack/index.js";
|
|
16
|
+
import { Background as z, Graticule as D, ImageStackerWrapper as F, UserObject as J, LatLabel as K, LongLabel as Q, Outline as X } from "./styles.js";
|
|
11
17
|
const Y = ({
|
|
12
18
|
className: y,
|
|
13
19
|
objects: g = [],
|
|
@@ -15,38 +21,38 @@ const Y = ({
|
|
|
15
21
|
visibleImages: w = [],
|
|
16
22
|
describedById: B
|
|
17
23
|
}) => {
|
|
18
|
-
const [O, W] = L(!1), [f, u] = L(), s = 600, l = 300,
|
|
24
|
+
const [O, W] = L(!1), [f, u] = L(), s = 600, l = 300, i = {
|
|
19
25
|
top: 20,
|
|
20
26
|
right: 0,
|
|
21
27
|
bottom: 20,
|
|
22
28
|
left: 20
|
|
23
|
-
}, j = s +
|
|
24
|
-
|
|
29
|
+
}, j = s + i.right + i.left, C = l + i.top + i.bottom, c = 15, d = 30, k = -90, x = 90, p = -180, b = 180, m = 2, a = E(), r = N();
|
|
30
|
+
r.step([d, c]), r.extent([
|
|
25
31
|
[p, k],
|
|
26
32
|
[b, x]
|
|
27
|
-
]),
|
|
33
|
+
]), a.fitExtent(
|
|
28
34
|
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
35
|
+
[i.left, i.top],
|
|
36
|
+
[i.left + s - m, i.top + l]
|
|
31
37
|
],
|
|
32
|
-
|
|
38
|
+
r.outline()
|
|
33
39
|
);
|
|
34
|
-
const G = M(k + c, x, c), H = M(p + d, b, d), P = R(
|
|
35
|
-
return /* @__PURE__ */ h(
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
40
|
+
const G = M(k + c, x, c), H = M(p + d, b, d), P = R(a).pointRadius(6), n = (t) => P(t) || void 0, e = typeof f < "u" ? g[f] : void 0, S = (e ? a([e == null ? void 0 : e.long, e == null ? void 0 : e.lat]) : [0, 0]) || [0, 0];
|
|
41
|
+
return /* @__PURE__ */ h(U, { width: j, height: C, className: y, children: [
|
|
42
|
+
/* @__PURE__ */ o("mask", { id: "imageMask", children: /* @__PURE__ */ o("path", { d: n(r.outline()), fill: "white" }) }),
|
|
43
|
+
/* @__PURE__ */ o(z, { d: n(r.outline()) }),
|
|
44
|
+
/* @__PURE__ */ o(D, { d: n(r()) }),
|
|
45
|
+
/* @__PURE__ */ o(
|
|
46
|
+
F,
|
|
41
47
|
{
|
|
42
48
|
style: { "--image-stack-opacity": O && 1 },
|
|
43
|
-
x:
|
|
44
|
-
y:
|
|
49
|
+
x: i.left,
|
|
50
|
+
y: i.top,
|
|
45
51
|
width: s - m,
|
|
46
52
|
height: l,
|
|
47
53
|
mask: "url(#imageMask)",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
|
|
54
|
+
children: /* @__PURE__ */ o(
|
|
55
|
+
q,
|
|
50
56
|
{
|
|
51
57
|
images: v,
|
|
52
58
|
describedById: B,
|
|
@@ -58,10 +64,10 @@ const Y = ({
|
|
|
58
64
|
)
|
|
59
65
|
}
|
|
60
66
|
),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
67
|
+
/* @__PURE__ */ o("g", { children: g.map(({ id: t, lat: T, long: $ }, A) => /* @__PURE__ */ o(
|
|
68
|
+
J,
|
|
63
69
|
{
|
|
64
|
-
d:
|
|
70
|
+
d: n({
|
|
65
71
|
type: "Point",
|
|
66
72
|
coordinates: [$, T]
|
|
67
73
|
}),
|
|
@@ -70,14 +76,14 @@ const Y = ({
|
|
|
70
76
|
},
|
|
71
77
|
t
|
|
72
78
|
)) }),
|
|
73
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ o("g", { "aria-hidden": "true", children: G.map(
|
|
74
80
|
(t) => t === 0 ? null : /* @__PURE__ */ h(
|
|
75
|
-
|
|
81
|
+
K,
|
|
76
82
|
{
|
|
77
83
|
style: {
|
|
78
84
|
dominantBaseline: t > 0 ? "text-after-edge" : "text-before-edge"
|
|
79
85
|
},
|
|
80
|
-
transform: `translate(${
|
|
86
|
+
transform: `translate(${a([p, t])})`,
|
|
81
87
|
children: [
|
|
82
88
|
t,
|
|
83
89
|
"°"
|
|
@@ -86,10 +92,10 @@ const Y = ({
|
|
|
86
92
|
t
|
|
87
93
|
)
|
|
88
94
|
) }),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
|
|
95
|
+
/* @__PURE__ */ o("g", { "aria-hidden": "true", children: H.map((t) => /* @__PURE__ */ h(
|
|
96
|
+
Q,
|
|
91
97
|
{
|
|
92
|
-
transform: `translate(${
|
|
98
|
+
transform: `translate(${a([t, 0])})`,
|
|
93
99
|
children: [
|
|
94
100
|
t,
|
|
95
101
|
"°"
|
|
@@ -97,20 +103,20 @@ const Y = ({
|
|
|
97
103
|
},
|
|
98
104
|
t
|
|
99
105
|
)) }),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
106
|
+
/* @__PURE__ */ o(
|
|
107
|
+
X,
|
|
102
108
|
{
|
|
103
109
|
strokeWidth: m,
|
|
104
|
-
d: r
|
|
110
|
+
d: n(r.outline())
|
|
105
111
|
}
|
|
106
112
|
),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
|
|
113
|
+
/* @__PURE__ */ o(
|
|
114
|
+
V,
|
|
109
115
|
{
|
|
110
|
-
visible: !!
|
|
116
|
+
visible: !!e,
|
|
111
117
|
x: S[0],
|
|
112
118
|
y: S[1],
|
|
113
|
-
children:
|
|
119
|
+
children: e == null ? void 0 : e.id
|
|
114
120
|
}
|
|
115
121
|
)
|
|
116
122
|
] });
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Background: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGPathElement>, never>> & string;
|
|
3
2
|
export declare const Graticule: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGPathElement>, never>> & string;
|
|
4
3
|
export declare const Outline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGPathElement>, never>> & string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
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
2
|
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
3
|
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>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const Container: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
2
|
export declare const SVG: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').SVGProps<SVGSVGElement>, never>> & string;
|
|
4
3
|
export declare const NorthDirection: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rubin-epo/epo-widget-lib",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Rubin Observatory Education & Public Outreach team React scientific and educational widgets.",
|
|
5
5
|
"author": "Rubin EPO",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,13 +28,15 @@
|
|
|
28
28
|
"test": "jest --max-workers=2",
|
|
29
29
|
"test:generate-output": "yarn test --json --outputFile=.jest-test-results.json || true",
|
|
30
30
|
"prepublishOnly": "yarn build",
|
|
31
|
-
"release": "semantic-release -e semantic-release-monorepo --debug"
|
|
31
|
+
"release-old": "semantic-release -e semantic-release-monorepo --debug"
|
|
32
32
|
},
|
|
33
33
|
"files": [
|
|
34
34
|
"README.md",
|
|
35
35
|
"dist"
|
|
36
36
|
],
|
|
37
|
-
"sideEffects":
|
|
37
|
+
"sideEffects": [
|
|
38
|
+
"**/*.css"
|
|
39
|
+
],
|
|
38
40
|
"exports": {
|
|
39
41
|
"./*": {
|
|
40
42
|
"import": "./dist/*.js",
|
|
@@ -66,8 +68,8 @@
|
|
|
66
68
|
"@testing-library/user-event": "^14.4.3",
|
|
67
69
|
"@types/d3-array": "^3.2.1",
|
|
68
70
|
"@types/d3-geo": "^3.1.0",
|
|
69
|
-
"@types/react": "
|
|
70
|
-
"@types/react-dom": "
|
|
71
|
+
"@types/react": "19.2.3",
|
|
72
|
+
"@types/react-dom": "19.2.3`",
|
|
71
73
|
"@vitejs/plugin-react": "^4",
|
|
72
74
|
"babel-loader": "^8.3.0",
|
|
73
75
|
"eslint-plugin-storybook": "^0.11.4",
|
|
@@ -78,8 +80,8 @@
|
|
|
78
80
|
"jest": "^29.4.2",
|
|
79
81
|
"jest-canvas-mock": "^2.4.0",
|
|
80
82
|
"jest-environment-jsdom": "^29.4.2",
|
|
81
|
-
"react": "
|
|
82
|
-
"react-dom": "
|
|
83
|
+
"react": "19.2.3",
|
|
84
|
+
"react-dom": "19.2.3",
|
|
83
85
|
"react-i18next": "13",
|
|
84
86
|
"rollup-plugin-banner2": "^1.2.2",
|
|
85
87
|
"semantic-release": "^24.1.0",
|
|
@@ -93,14 +95,14 @@
|
|
|
93
95
|
"peerDependencies": {
|
|
94
96
|
"i18next": "^22.0.0 || ^23.0.0",
|
|
95
97
|
"next": "^13.0.0 || ^14.0.0",
|
|
96
|
-
"react": "^
|
|
97
|
-
"react-dom": "^
|
|
98
|
+
"react": "^19.2.3",
|
|
99
|
+
"react-dom": "^19.2.3",
|
|
98
100
|
"react-i18next": "^12.0.0 || ^13.0.0"
|
|
99
101
|
},
|
|
100
102
|
"dependencies": {
|
|
101
103
|
"@react-three/drei": "^10.7.6",
|
|
102
|
-
"@react-three/fiber": "
|
|
103
|
-
"@rubin-epo/epo-react-lib": "
|
|
104
|
+
"@react-three/fiber": "9",
|
|
105
|
+
"@rubin-epo/epo-react-lib": "3.0.1",
|
|
104
106
|
"context-filter-polyfill": "^0.3.6",
|
|
105
107
|
"d3-array": "^3.2.4",
|
|
106
108
|
"d3-geo": "^3.1.1",
|
|
@@ -113,8 +115,8 @@
|
|
|
113
115
|
"use-resize-observer": "^9.1.0"
|
|
114
116
|
},
|
|
115
117
|
"resolutions": {
|
|
116
|
-
"semver": "7.3
|
|
117
|
-
"@types/react": "
|
|
118
|
-
"@types/react-dom": "
|
|
118
|
+
"semver": "7.6.3",
|
|
119
|
+
"@types/react": "19.2.3",
|
|
120
|
+
"@types/react-dom": "19.2.3"
|
|
119
121
|
}
|
|
120
122
|
}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react"),i=require("../../node_modules/prop-types/index.cjs");require("three");const l=require("../../node_modules/three/examples/jsm/controls/OrbitControls.cjs"),f=require("@react-three/fiber");function s({pov:t,reset:n}){const{camera:u,gl:c}=f.useThree(),e=r.useRef();function a(){if(t){const o={side:Math.PI/1.0075,top:Math.PI/2}[t];e.current.minAzimuthAngle=0,e.current.maxAzimuthAngle=0,e.current.minPolarAngle=o,e.current.maxPolarAngle=o}e.current.update()}return r.useEffect(()=>{e.current&&n>0&&e.current.reset()},[n]),r.useEffect(()=>(e.current=new l.OrbitControls(u,c.domElement),e.current.minDistance=70,e.current.maxDistance=1e4,e.current.screenSpacePanning=!0,a(),()=>{e.current.dispose()}),[u,c]),null}s.propTypes={pov:i.default.string,reset:i.default.number};exports.default=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_playbackControlsContainer_1m020_1",t={playbackControlsContainer:o};exports.default=t;exports.playbackControlsContainer=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),f=require("react"),n=require("../../node_modules/prop-types/index.cjs"),v=require("../../node_modules/classnames/index.cjs"),x=require("@react-three/drei"),o=require("./OrbitalSim.module.css.cjs"),h=require("./Context/index.cjs");function l({data:r,vector:a}){const{updateActiveObservation:u}=h.useOrbitalSimContext(),{label:c,interactable:t,isActive:s,isAnswer:d}=r,[b,i]=f.useState(!1);function m(){return s&&d?"green":s||b?"blue":"gray"}return e.jsxs("mesh",{className:o.default["obs-mesh"],position:a,onClick:t?()=>{u(r.id)}:null,onPointerOver:t?()=>i(!0):null,onPointerOut:t?()=>i(!1):null,children:[e.jsx(x.Html,{children:e.jsx("div",{className:v.default(o.default["obs-label"]),children:c})}),e.jsx("octahedronGeometry",{attach:"geometry",args:[20]}),e.jsx("meshBasicMaterial",{attach:"material",color:m()})]})}l.propTypes={data:n.default.object,vector:n.default.object};exports.default=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),m=require("react"),l=require("../../node_modules/prop-types/index.cjs"),j=require("three"),v=require("./Observation.cjs"),c=require("./orbitalUtilities.cjs");function x(e){if(e&&e.__esModule)return e;const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const O=x(j),d=({data:e,observations:n})=>{const[t]=m.useState(()=>{const{a:r,e:u}=e,o=c.auToUnit(r),i=c.getMinorAxis(r,u),f=c.getFocus(o,i),a=new O.Vector3(f,0,0),b=c.getCurve(o,i,a.x,a.y);return(n||[]).map(g=>{const{position:p}=g;return c.convert2dTo3d(b.getPoint(p),e)})});return s.jsx(s.Fragment,{children:t&&s.jsx(s.Fragment,{children:t.map((r,u)=>{const o=n[u],{id:i}=o;return s.jsx(v.default,{data:o,vector:r},i)})})})};d.propTypes={data:l.default.object,observations:l.default.array};exports.default=d;
|
|
@@ -1 +0,0 @@
|
|
|
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"),fe=require("three"),xe=require("@react-three/fiber"),h=require("@react-three/drei"),t=require("./orbitalUtilities.cjs"),g=require("./OrbitalSim.module.css.cjs"),pe=require("./chartColors.module.css.cjs"),je=require("./Context/index.cjs"),ye=require("react-i18next");function be(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 M=be(fe),_=({data:i,selectionCallback:f,active:a,playing:j,dayPerVizSec:F,stepDirection:I,frameOverride:L,orbitColor:G,objectColor:R,objectRadius:k,initialized:w,initCallback:C,devMode:D,zoomMod:Z,defaultZoom:U,type:K,noLabels:Y,reset:A})=>{const{t:$}=ye.useTranslation(),{orbits:J}=je.useOrbitalSimContext(),{activeVelocityCallback:Q}=J,W=r.useRef(),{a:z,e:X,i:ee,M:te,Node:B,Peri:V,Principal_desig:oe,Translated_desig_key:q,name:se}=i||{},[re]=r.useState(()=>[0,t.degsToRads(ee),B?t.degsToRads(B):0]),[n]=r.useState(()=>t.auToUnit(z)),[y]=r.useState(()=>t.getMinorAxis(z,X)),[ie]=r.useState(()=>t.getFocus(n,y)),[s]=r.useState(new M.Vector3(ie,0,0)),[d]=r.useState(new M.Vector3(0,0,0)),[ae,ne]=r.useState(!1),[u]=r.useState(()=>t.getCurve(n,y,s.x,s.y)),[le]=r.useState(()=>t.getLineGeometry(u.getPoints(360))),b=t.getPosFromArcLength(0,u),[x,v]=r.useState({position:b,rotation:[0,0,0],progress:0,velocity:t.getVelocity(b.distanceTo(d),n),period:0});r.useEffect(()=>{A>0&&v({position:b,rotation:[0,0,0],progress:0,velocity:t.getVelocity(b.distanceTo(d),n),period:0})},[A]);function ce(m){let l=0,c=t.getPosFromArcLength(l,u);if(m){const S=m>180,O=S?m-180:m;let p=t.getAngleFromPos(c,d);for(;p<O;)l+=.01,c=t.getPosFromArcLength(l,u),p=t.getAngleFromPos(c,d);S&&(l+=.5,c=t.getPosFromArcLength(l,u))}return C?C():ne(!0),{position:c,rotation:[0,0,0],progress:l,velocity:t.getVelocity(c.distanceTo(d),n),period:0}}function H(m,P){const{progress:l,position:c,velocity:S,period:O}=x,p=m?0:P*(F||t.DAY_PER_VIZ_SEC),de=S*p*I,T=l+de/u.getLength(),E=T>1?1-T:T,{x:ue,y:me}=u.getPoint(E),he=new M.Vector3(ue,me,0),ge=t.getVelocity(c.distanceTo(d),n);let N=p+O;T>1&&(N=0),v({...x,position:he,progress:E,velocity:ge,period:N})}return r.useEffect(()=>{v(ce(te||Math.floor(Math.random()*Math.floor(180))))},[]),r.useEffect(()=>{L&&H(!1,1/60)},[L]),r.useEffect(()=>{a&&Q(t.auToMeters(t.unitToAu(x.velocity/1e5)))},[x]),xe.useFrame((m,P)=>{(w||ae)&&H(!j,P)}),e.jsx("group",{rotation:re,children:e.jsxs("group",{rotation:[0,0,V?t.degsToRads(V+90):0],children:[e.jsx("line",{ref:W,geometry:le,children:e.jsx("lineBasicMaterial",{attach:"material",color:a?t.ORBITAL_COLORS.asteroid.orbitHighlight:G||t.ORBITAL_COLORS.asteroid.orbitColor})}),e.jsxs("mesh",{position:x.position,onClick:()=>f(i,"neo"),children:[(K==="planet"||!Y||a)&&e.jsx(h.Html,{children:e.jsx("button",{type:"button",className:g.default.label,style:{fontSize:t.getLabelSize(Z,U)},onClick:()=>f(i,"neo"),children:q?$(q):se||oe})}),e.jsx("sphereGeometry",{attach:"geometry",args:[k||4,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:a?t.ORBITAL_COLORS.asteroid.objectHighlight:R||t.ORBITAL_COLORS.asteroid.objectColor})]}),D&&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:pe.default.chart1}),e.jsx(h.Html,{children:e.jsx("div",{className:g.default.label,children:"center"})})]}),e.jsxs("mesh",{position:d,children:[e.jsx("sphereGeometry",{attach:"geometry",args:[2,10,10]}),e.jsx("meshBasicMaterial",{attach:"material",color:R||"blue"}),e.jsx(h.Html,{children:e.jsx("div",{className:g.default.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(h.Html,{children:e.jsx("div",{className:g.default.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(h.Html,{children:e.jsx("div",{className:g.default.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(h.Html,{children:e.jsx("div",{className:g.default.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(h.Html,{children:e.jsx("div",{className:g.default.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,noLabels:o.default.bool,reset:o.default.number};exports.default=_;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { default as PropTypes } from 'prop-types';
|
|
2
|
-
export default Orbital;
|
|
3
|
-
declare function Orbital({ data, selectionCallback, active, playing, dayPerVizSec, stepDirection, frameOverride, orbitColor, objectColor, objectRadius, initialized, initCallback, devMode, zoomMod, defaultZoom, type, noLabels, reset }: {
|
|
4
|
-
data: any;
|
|
5
|
-
selectionCallback: any;
|
|
6
|
-
active: any;
|
|
7
|
-
playing: any;
|
|
8
|
-
dayPerVizSec: any;
|
|
9
|
-
stepDirection: any;
|
|
10
|
-
frameOverride: any;
|
|
11
|
-
orbitColor: any;
|
|
12
|
-
objectColor: any;
|
|
13
|
-
objectRadius: any;
|
|
14
|
-
initialized: any;
|
|
15
|
-
initCallback: any;
|
|
16
|
-
devMode: any;
|
|
17
|
-
zoomMod: any;
|
|
18
|
-
defaultZoom: any;
|
|
19
|
-
type: any;
|
|
20
|
-
noLabels: any;
|
|
21
|
-
reset: any;
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare namespace Orbital {
|
|
24
|
-
namespace defaultProps {
|
|
25
|
-
let type: string;
|
|
26
|
-
}
|
|
27
|
-
namespace propTypes {
|
|
28
|
-
export let data: PropTypes.Requireable<object>;
|
|
29
|
-
export let selectionCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
30
|
-
export let active: PropTypes.Requireable<boolean>;
|
|
31
|
-
export let playing: PropTypes.Requireable<boolean>;
|
|
32
|
-
export let dayPerVizSec: PropTypes.Requireable<number>;
|
|
33
|
-
export let stepDirection: PropTypes.Requireable<number>;
|
|
34
|
-
export let frameOverride: PropTypes.Requireable<number>;
|
|
35
|
-
export let orbitColor: PropTypes.Requireable<string>;
|
|
36
|
-
export let objectColor: PropTypes.Requireable<string>;
|
|
37
|
-
export let objectRadius: PropTypes.Requireable<number>;
|
|
38
|
-
export let initCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
39
|
-
export let initialized: PropTypes.Requireable<boolean>;
|
|
40
|
-
export let devMode: PropTypes.Requireable<boolean>;
|
|
41
|
-
export let activeVelocityCallback: PropTypes.Requireable<(...args: any[]) => any>;
|
|
42
|
-
export let zoomMod: PropTypes.Requireable<number>;
|
|
43
|
-
export let defaultZoom: PropTypes.Requireable<number>;
|
|
44
|
-
let type_1: PropTypes.Requireable<string>;
|
|
45
|
-
export { type_1 as type };
|
|
46
|
-
export let noLabels: PropTypes.Requireable<boolean>;
|
|
47
|
-
export let reset: PropTypes.Requireable<number>;
|
|
48
|
-
}
|
|
49
|
-
}
|