@rubin-epo/epo-widget-lib 0.10.2 → 0.10.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.
- package/dist/atomic/Blinker/Controls/styles.d.ts +56 -54
- package/dist/atomic/Blinker/styles.d.ts +109 -108
- package/dist/atomic/ElapsedTime/styles.d.ts +326 -324
- package/dist/atomic/LiveRegion/styles.d.ts +56 -54
- package/dist/atomic/Loader/styles.d.ts +56 -54
- package/dist/atomic/PlaybackControl/styles.d.ts +110 -108
- package/dist/atomic/PlotWrapper/styles.d.ts +56 -54
- package/dist/charts/Base/styles.d.ts +541 -539
- package/dist/charts/Readout/styles.d.ts +110 -108
- package/dist/charts/Tooltip/styles.d.ts +109 -108
- package/dist/charts/XAxis/index.cjs +1 -1
- package/dist/charts/XAxis/index.js +47 -32
- package/dist/charts/YAxis/index.cjs +1 -1
- package/dist/charts/YAxis/index.js +44 -29
- package/dist/charts/hooks/useAxis.cjs +1 -1
- package/dist/charts/hooks/useAxis.d.ts +4 -3
- package/dist/charts/hooks/useAxis.js +15 -25
- package/dist/charts/styles.d.ts +320 -318
- package/dist/layout/AspectRatio/styles.d.ts +55 -54
- package/dist/layout/Controls/styles.d.ts +379 -378
- package/dist/lib/utils.d.ts +2 -2
- package/dist/styles/svg.d.ts +56 -54
- package/dist/widgets/CameraFilter/styles.d.ts +860 -860
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +222 -221
- package/dist/widgets/FilterTool/styles.d.ts +426 -426
- package/dist/widgets/LightCurvePlot/Plot/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/Plot/index.js +67 -52
- package/dist/widgets/LightCurvePlot/Plot/styles.d.ts +110 -108
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/styles.d.ts +56 -54
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.d.ts +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.js +29 -33
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.js +4 -4
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +85 -81
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +164 -162
- package/dist/widgets/LightCurvePlot/defaults.cjs +1 -1
- package/dist/widgets/LightCurvePlot/defaults.d.ts +10 -6
- package/dist/widgets/LightCurvePlot/defaults.js +2 -6
- package/dist/widgets/LightCurvePlot/helpers.cjs +1 -1
- package/dist/widgets/LightCurvePlot/helpers.js +1 -1
- package/dist/widgets/SourceSelector/Point/styles.d.ts +55 -53
- package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +164 -162
- package/dist/widgets/SourceSelector/styles.d.ts +496 -0
- package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Histogram/index.js +8 -8
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +55 -53
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +373 -371
- package/package.json +4 -4
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/styles.cjs +0 -5
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/styles.d.ts +0 -272
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/styles.js +0 -10
|
@@ -1,40 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsx as i, jsxs as e } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslation as c } from "react-i18next";
|
|
4
4
|
import d from "../../../../charts/Readout/index.js";
|
|
5
|
-
import { estimateMagnitude as
|
|
6
|
-
|
|
7
|
-
const a = ({ gaussianWidth: e, className: n }) => {
|
|
5
|
+
import { estimateMagnitude as a } from "../../helpers.js";
|
|
6
|
+
const n = ({ gaussianWidth: t, className: r }) => {
|
|
8
7
|
const {
|
|
9
|
-
t:
|
|
10
|
-
i18n: { language:
|
|
11
|
-
} = c(),
|
|
12
|
-
return /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ i(
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */ i("
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
)
|
|
33
|
-
] })
|
|
34
|
-
] });
|
|
8
|
+
t: l,
|
|
9
|
+
i18n: { language: m }
|
|
10
|
+
} = c(), o = a(0, t), s = a(15, t) - o;
|
|
11
|
+
return /* @__PURE__ */ i(d, { className: r, children: /* @__PURE__ */ e("math", { xmlns: "http://www.w3.org/1998/Math/MathML", children: [
|
|
12
|
+
/* @__PURE__ */ i("mn", { children: "Δ" }),
|
|
13
|
+
/* @__PURE__ */ e("msub", { children: [
|
|
14
|
+
/* @__PURE__ */ i("mi", { children: "m" }),
|
|
15
|
+
/* @__PURE__ */ i("mn", { children: "15" })
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ i("mo", { children: "=" }),
|
|
18
|
+
/* @__PURE__ */ i(
|
|
19
|
+
"mn",
|
|
20
|
+
{
|
|
21
|
+
role: "status",
|
|
22
|
+
"aria-live": "polite",
|
|
23
|
+
"aria-label": l("light_curve.deltaM15.label"),
|
|
24
|
+
children: Number(s).toLocaleString(m, {
|
|
25
|
+
minimumFractionDigits: 2,
|
|
26
|
+
maximumFractionDigits: 2
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
)
|
|
30
|
+
] }) });
|
|
35
31
|
};
|
|
36
|
-
|
|
37
|
-
const
|
|
32
|
+
n.displayName = "Widgets.LightCurve.DM15Display";
|
|
33
|
+
const g = n;
|
|
38
34
|
export {
|
|
39
|
-
|
|
35
|
+
g as default
|
|
40
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),h=require("react-i18next"),s=require("./styles.cjs"),v=(t,i,a)=>{const n=Number(Math.abs(i-t).toFixed(1)),u=n.toLocaleString(a,{minimumFractionDigits:1,maximumFractionDigits:1});let e;return n<=.05?(e="equal",{distance:n,context:e}):(t<i?e="above":e="below",{distance:u,context:e})},c=({magnitude:t,yMin:i,yMax:a,onMagnitudeChangeCallback:n,estimatedPeak:u,disabled:e})=>{const{t:o,i18n:{language:l}}=h.useTranslation(),m=Math.min(i,a),d=Math.max(i,a);return r.jsx(s.Slider,{ariaLabel:o("light_curve.magnitude_slider.label")
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),h=require("react-i18next"),s=require("./styles.cjs"),v=(t,i,a)=>{const n=Number(Math.abs(i-t).toFixed(1)),u=n.toLocaleString(a,{minimumFractionDigits:1,maximumFractionDigits:1});let e;return n<=.05?(e="equal",{distance:n,context:e}):(t<i?e="above":e="below",{distance:u,context:e})},c=({magnitude:t,yMin:i,yMax:a,onMagnitudeChangeCallback:n,estimatedPeak:u,disabled:e})=>{const{t:o,i18n:{language:l}}=h.useTranslation(),m=Math.min(i,a),d=Math.max(i,a);return r.jsx(s.Slider,{ariaLabel:o("light_curve.magnitude_slider.label"),orientation:"vertical",value:t,step:.1,ariaValuetext:()=>o("light_curve.magnitude_slider.value",{...v(u,t,l),magnitude:t.toLocaleString(l,{minimumFractionDigits:1,maximumFractionDigits:1})}),onChange:n,renderThumb:({key:g,style:x,...b})=>r.jsxs(s.ThumbContainer,{...b,style:x,children:[r.jsx(s.ThumbBar,{}),r.jsx(s.ThumbHandle,{})]},g),min:m,max:d,disabled:e})};c.displayName="Widgets.LightCurve.MagnitudeSlider";const S=c;exports.default=S;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as o, jsxs as b } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslation as x } from "react-i18next";
|
|
4
|
-
import { Slider as
|
|
4
|
+
import { Slider as f, ThumbContainer as v, ThumbBar as p, ThumbHandle as S } from "./styles.js";
|
|
5
5
|
const D = (i, e, a) => {
|
|
6
6
|
const n = Number(Math.abs(e - i).toFixed(1)), r = n.toLocaleString(a, {
|
|
7
7
|
minimumFractionDigits: 1,
|
|
@@ -22,9 +22,9 @@ const D = (i, e, a) => {
|
|
|
22
22
|
i18n: { language: l }
|
|
23
23
|
} = x(), u = Math.min(e, a), c = Math.max(e, a);
|
|
24
24
|
return /* @__PURE__ */ o(
|
|
25
|
-
|
|
25
|
+
f,
|
|
26
26
|
{
|
|
27
|
-
ariaLabel: m("light_curve.magnitude_slider.label")
|
|
27
|
+
ariaLabel: m("light_curve.magnitude_slider.label"),
|
|
28
28
|
orientation: "vertical",
|
|
29
29
|
value: i,
|
|
30
30
|
step: 0.1,
|
|
@@ -36,7 +36,7 @@ const D = (i, e, a) => {
|
|
|
36
36
|
})
|
|
37
37
|
}),
|
|
38
38
|
onChange: n,
|
|
39
|
-
renderThumb: ({ key: d, style: g, ...h }) => /* @__PURE__ */ b(
|
|
39
|
+
renderThumb: ({ key: d, style: g, ...h }) => /* @__PURE__ */ b(v, { ...h, style: g, children: [
|
|
40
40
|
/* @__PURE__ */ o(p, {}),
|
|
41
41
|
/* @__PURE__ */ o(S, {})
|
|
42
42
|
] }, d),
|
|
@@ -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"),z=require("react"),T=require("react-i18next"),N=require("d3-array"),J=require("@rubin-epo/epo-react-lib/HorizontalSlider"),t=require("../defaults.cjs"),K=require("../Plot/index.cjs"),O=require("./A11Y/LightCurveLabel/index.cjs"),a=require("../helpers.cjs"),Q=require("../../../atomic/Button/patterns/Reset.cjs"),V=require("./MagnitudeSlider/index.cjs"),X=require("./styles.cjs"),Z=require("../../../charts/Viewport/index.cjs"),E=require("../../../layout/Controls/index.cjs"),b=require("../../../atomic/ControlLabel/index.cjs"),G=require("../../../charts/PathFromPoints/index.cjs"),U=require("../../../lib/utils.cjs"),Y=r=>r&&r.__esModule?r:{default:r},$=Y(J),I=({gaussianWidth:r=t.default.gaussianWidth,yOffset:l=t.default.yOffset,alerts:P,peakMjd:W,yMin:c,yMax:f,width:x=t.default.width,height:m=t.default.height,userMagnitude:A,onUserMagnitudeChangeCallback:n,onGaussianChangeCallback:d,onYOffsetChangeCallback:o,className:D,isDisplayOnly:q,...F})=>{const{t:j}=T.useTranslation(),i=U.mergeWithDefaults({min:c,max:f},t.default.yAxis),g=(i.max-i.min)/2+i.min,p=a.useAlertsAsPoints(P,W),H=z.useId(),R=()=>{n&&n(g),o&&o(t.default.yOffset),d&&d(t.default.gaussianWidth)},y=a.estimateMagnitudeWithOffset(0,r,l),S=e.jsx(K.default,{slider:e.jsx(V.default,{magnitude:A||g,onMagnitudeChangeCallback:u=>n&&n(u),disabled:q,yMin:i.min,yMax:i.max,estimatedPeak:y}),plotChildren:({xScale:u,yScale:s,xDomain:h,yDomain:B,xStart:v,xEnd:L,yStart:w,yEnd:_})=>e.jsxs(e.Fragment,{children:[e.jsx(G.default,{points:N.range(h[0],h[1],.5).map(M=>({x:u(M),y:s(a.estimateMagnitude(M,r))})),svgProps:{transform:`translate(0,${s(B[1]-l)})`}}),e.jsx(Z.default,{x:v,y:_,outerHeight:w-_,outerWidth:L-v,innerWidth:x,innerHeight:m,children:e.jsx(X.DM15Display,{gaussianWidth:r})})]}),...F,data:p,width:x,height:m,yMin:c,yMax:f});return e.jsx(e.Fragment,{children:e.jsx(E.default,{className:D,isDisplayOnly:q,widget:S,controls:e.jsxs(e.Fragment,{children:[e.jsx(b.default,{label:j("light_curve.curve.controls.gaussian_width"),input:u=>e.jsx($.default,{labelledbyId:u,color:"var(--turquoise85, #12726D)",min:t.default.gaussianMin,max:t.default.gaussianMax,step:t.default.gaussianStep,value:r,onChangeCallback:s=>typeof s=="number"&&d&&d(s)}),labelBy:!0}),e.jsx(b.default,{label:j("light_curve.curve.controls.y_offset"),input:u=>e.jsx($.default,{labelledbyId:u,color:"var(--turquoise85, #12726D)",min:t.default.yOffsetMin,max:t.default.yOffsetMax,step:t.default.yOffsetStep,value:l,onChangeCallback:s=>typeof s=="number"&&o&&o(s)}),labelBy:!0}),e.jsx(O.default,{controlledById:H,data:p,gaussianWidth:r,yOffset:l,estimatedPeak:y})]}),actions:e.jsx(Q.default,{onResetCallback:R})})})};I.displayName="Widgets.LightCurve";const k=I;exports.default=k;
|
|
@@ -1,128 +1,132 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as t, jsxs as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useTranslation as
|
|
5
|
-
import { range as
|
|
6
|
-
import
|
|
2
|
+
import { jsx as t, jsxs as L, Fragment as d } from "react/jsx-runtime";
|
|
3
|
+
import { useId as N } from "react";
|
|
4
|
+
import { useTranslation as T } from "react-i18next";
|
|
5
|
+
import { range as V } from "d3-array";
|
|
6
|
+
import I from "@rubin-epo/epo-react-lib/HorizontalSlider";
|
|
7
7
|
import r from "../defaults.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useAlertsAsPoints as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { DM15Display as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
const
|
|
20
|
-
gaussianWidth:
|
|
8
|
+
import J from "../Plot/index.js";
|
|
9
|
+
import K from "./A11Y/LightCurveLabel/index.js";
|
|
10
|
+
import { useAlertsAsPoints as Q, estimateMagnitudeWithOffset as X, estimateMagnitude as Z } from "../helpers.js";
|
|
11
|
+
import E from "../../../atomic/Button/patterns/Reset.js";
|
|
12
|
+
import O from "./MagnitudeSlider/index.js";
|
|
13
|
+
import { DM15Display as G } from "./styles.js";
|
|
14
|
+
import U from "../../../charts/Viewport/index.js";
|
|
15
|
+
import Y from "../../../layout/Controls/index.js";
|
|
16
|
+
import A from "../../../atomic/ControlLabel/index.js";
|
|
17
|
+
import k from "../../../charts/PathFromPoints/index.js";
|
|
18
|
+
import { mergeWithDefaults as C } from "../../../lib/utils.js";
|
|
19
|
+
const B = ({
|
|
20
|
+
gaussianWidth: i = r.gaussianWidth,
|
|
21
21
|
yOffset: s = r.yOffset,
|
|
22
22
|
alerts: _,
|
|
23
|
-
peakMjd:
|
|
24
|
-
yMin:
|
|
25
|
-
yMax:
|
|
26
|
-
width:
|
|
23
|
+
peakMjd: w,
|
|
24
|
+
yMin: p,
|
|
25
|
+
yMax: f,
|
|
26
|
+
width: a = r.width,
|
|
27
27
|
height: c = r.height,
|
|
28
|
-
userMagnitude:
|
|
28
|
+
userMagnitude: D,
|
|
29
29
|
onUserMagnitudeChangeCallback: n,
|
|
30
|
-
onGaussianChangeCallback:
|
|
30
|
+
onGaussianChangeCallback: l,
|
|
31
31
|
onYOffsetChangeCallback: u,
|
|
32
|
-
className:
|
|
33
|
-
isDisplayOnly:
|
|
34
|
-
...
|
|
32
|
+
className: F,
|
|
33
|
+
isDisplayOnly: g,
|
|
34
|
+
...H
|
|
35
35
|
}) => {
|
|
36
|
-
const { t: h } =
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
const { t: h } = T(), m = C(
|
|
37
|
+
{ min: p, max: f },
|
|
38
|
+
r.yAxis
|
|
39
|
+
), y = (m.max - m.min) / 2 + m.min, v = Q(_, w), R = N(), j = () => {
|
|
40
|
+
n && n(y), u && u(r.yOffset), l && l(r.gaussianWidth);
|
|
41
|
+
}, x = X(0, i, s), q = /* @__PURE__ */ t(
|
|
42
|
+
J,
|
|
40
43
|
{
|
|
41
44
|
slider: /* @__PURE__ */ t(
|
|
42
|
-
|
|
45
|
+
O,
|
|
43
46
|
{
|
|
44
|
-
magnitude:
|
|
47
|
+
magnitude: D || y,
|
|
45
48
|
onMagnitudeChangeCallback: (e) => n && n(e),
|
|
46
|
-
disabled:
|
|
47
|
-
yMin:
|
|
48
|
-
yMax:
|
|
49
|
-
estimatedPeak:
|
|
49
|
+
disabled: g,
|
|
50
|
+
yMin: m.min,
|
|
51
|
+
yMax: m.max,
|
|
52
|
+
estimatedPeak: x
|
|
50
53
|
}
|
|
51
54
|
),
|
|
52
55
|
plotChildren: ({
|
|
53
56
|
xScale: e,
|
|
54
57
|
yScale: o,
|
|
55
|
-
xDomain:
|
|
56
|
-
yDomain:
|
|
57
|
-
xStart:
|
|
58
|
-
xEnd:
|
|
59
|
-
yStart:
|
|
60
|
-
yEnd:
|
|
61
|
-
}) => /* @__PURE__ */
|
|
58
|
+
xDomain: b,
|
|
59
|
+
yDomain: S,
|
|
60
|
+
xStart: P,
|
|
61
|
+
xEnd: $,
|
|
62
|
+
yStart: z,
|
|
63
|
+
yEnd: M
|
|
64
|
+
}) => /* @__PURE__ */ L(d, { children: [
|
|
62
65
|
/* @__PURE__ */ t(
|
|
63
|
-
|
|
66
|
+
k,
|
|
64
67
|
{
|
|
65
|
-
points:
|
|
66
|
-
x: e(
|
|
67
|
-
y: o(
|
|
68
|
+
points: V(b[0], b[1], 0.5).map((W) => ({
|
|
69
|
+
x: e(W),
|
|
70
|
+
y: o(Z(W, i))
|
|
68
71
|
})),
|
|
69
72
|
svgProps: {
|
|
70
|
-
transform: `translate(0,${o(
|
|
73
|
+
transform: `translate(0,${o(S[1] - s)})`
|
|
71
74
|
}
|
|
72
75
|
}
|
|
73
76
|
),
|
|
74
77
|
/* @__PURE__ */ t(
|
|
75
|
-
|
|
78
|
+
U,
|
|
76
79
|
{
|
|
77
|
-
x:
|
|
78
|
-
y:
|
|
79
|
-
outerHeight:
|
|
80
|
-
outerWidth:
|
|
81
|
-
innerWidth:
|
|
80
|
+
x: P,
|
|
81
|
+
y: M,
|
|
82
|
+
outerHeight: z - M,
|
|
83
|
+
outerWidth: $ - P,
|
|
84
|
+
innerWidth: a,
|
|
82
85
|
innerHeight: c,
|
|
83
|
-
children: /* @__PURE__ */ t(
|
|
86
|
+
children: /* @__PURE__ */ t(G, { gaussianWidth: i })
|
|
84
87
|
}
|
|
85
88
|
)
|
|
86
89
|
] }),
|
|
87
|
-
...
|
|
88
|
-
data:
|
|
89
|
-
width:
|
|
90
|
+
...H,
|
|
91
|
+
data: v,
|
|
92
|
+
width: a,
|
|
90
93
|
height: c,
|
|
91
|
-
yMin:
|
|
92
|
-
yMax:
|
|
94
|
+
yMin: p,
|
|
95
|
+
yMax: f
|
|
93
96
|
}
|
|
94
97
|
);
|
|
95
|
-
return
|
|
96
|
-
|
|
98
|
+
return /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(
|
|
99
|
+
Y,
|
|
97
100
|
{
|
|
98
|
-
className:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
className: F,
|
|
102
|
+
isDisplayOnly: g,
|
|
103
|
+
widget: q,
|
|
104
|
+
controls: /* @__PURE__ */ L(d, { children: [
|
|
101
105
|
/* @__PURE__ */ t(
|
|
102
|
-
|
|
106
|
+
A,
|
|
103
107
|
{
|
|
104
108
|
label: h("light_curve.curve.controls.gaussian_width"),
|
|
105
109
|
input: (e) => /* @__PURE__ */ t(
|
|
106
|
-
|
|
110
|
+
I,
|
|
107
111
|
{
|
|
108
112
|
labelledbyId: e,
|
|
109
113
|
color: "var(--turquoise85, #12726D)",
|
|
110
114
|
min: r.gaussianMin,
|
|
111
115
|
max: r.gaussianMax,
|
|
112
116
|
step: r.gaussianStep,
|
|
113
|
-
value:
|
|
114
|
-
onChangeCallback: (o) => typeof o == "number" &&
|
|
117
|
+
value: i,
|
|
118
|
+
onChangeCallback: (o) => typeof o == "number" && l && l(o)
|
|
115
119
|
}
|
|
116
120
|
),
|
|
117
121
|
labelBy: !0
|
|
118
122
|
}
|
|
119
123
|
),
|
|
120
124
|
/* @__PURE__ */ t(
|
|
121
|
-
|
|
125
|
+
A,
|
|
122
126
|
{
|
|
123
127
|
label: h("light_curve.curve.controls.y_offset"),
|
|
124
128
|
input: (e) => /* @__PURE__ */ t(
|
|
125
|
-
|
|
129
|
+
I,
|
|
126
130
|
{
|
|
127
131
|
labelledbyId: e,
|
|
128
132
|
color: "var(--turquoise85, #12726D)",
|
|
@@ -137,22 +141,22 @@ const R = ({
|
|
|
137
141
|
}
|
|
138
142
|
),
|
|
139
143
|
/* @__PURE__ */ t(
|
|
140
|
-
|
|
144
|
+
K,
|
|
141
145
|
{
|
|
142
|
-
controlledById:
|
|
143
|
-
data:
|
|
144
|
-
gaussianWidth:
|
|
146
|
+
controlledById: R,
|
|
147
|
+
data: v,
|
|
148
|
+
gaussianWidth: i,
|
|
145
149
|
yOffset: s,
|
|
146
|
-
estimatedPeak:
|
|
150
|
+
estimatedPeak: x
|
|
147
151
|
}
|
|
148
152
|
)
|
|
149
153
|
] }),
|
|
150
|
-
actions: /* @__PURE__ */ t(
|
|
154
|
+
actions: /* @__PURE__ */ t(E, { onResetCallback: j })
|
|
151
155
|
}
|
|
152
156
|
) });
|
|
153
157
|
};
|
|
154
|
-
|
|
155
|
-
const
|
|
158
|
+
B.displayName = "Widgets.LightCurve";
|
|
159
|
+
const yt = B;
|
|
156
160
|
export {
|
|
157
|
-
|
|
161
|
+
yt as default
|
|
158
162
|
};
|