@rubin-epo/epo-widget-lib 0.8.0 → 0.9.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/dist/Charts.cjs +1 -1
- package/dist/Charts.js +12 -8
- package/dist/ColorTool.cjs +1 -1
- package/dist/ColorTool.js +62 -59
- package/dist/LightCurvePlot.cjs +1 -0
- package/dist/LightCurvePlot.d.ts +1 -0
- package/dist/LightCurvePlot.js +6 -0
- package/dist/SupernovaThreeVector.cjs +1 -1
- package/dist/SupernovaThreeVector.js +71 -65
- package/dist/atomic/Button/patterns/Reset.js +9 -9
- package/dist/atomic/LiveRegion/index.cjs +1 -0
- package/dist/atomic/LiveRegion/index.d.ts +5 -0
- package/dist/atomic/LiveRegion/index.js +10 -0
- package/dist/charts/Base/index.cjs +1 -1
- package/dist/charts/Base/index.js +37 -23
- package/dist/charts/Base/styles.cjs +5 -2
- package/dist/charts/Base/styles.js +7 -4
- package/dist/charts/ForeignObject/index.cjs +1 -0
- package/dist/charts/ForeignObject/index.d.ts +5 -0
- package/dist/charts/ForeignObject/index.js +18 -0
- package/dist/charts/Tooltip/index.cjs +1 -1
- package/dist/charts/Tooltip/index.d.ts +2 -2
- package/dist/charts/Tooltip/index.js +23 -24
- package/dist/charts/Viewport/index.cjs +1 -0
- package/dist/charts/Viewport/index.d.ts +11 -0
- package/dist/charts/Viewport/index.js +26 -0
- package/dist/charts/XAxis/index.cjs +1 -1
- package/dist/charts/XAxis/index.js +21 -21
- package/dist/charts/YAxis/index.cjs +1 -1
- package/dist/charts/YAxis/index.js +19 -19
- package/dist/charts/hooks/useAxis.cjs +1 -0
- package/dist/charts/hooks/useAxis.d.ts +16 -0
- package/dist/charts/hooks/useAxis.js +29 -0
- package/dist/charts/index.d.ts +2 -0
- package/dist/hooks/usePrevious.cjs +1 -0
- package/dist/hooks/usePrevious.d.ts +1 -0
- package/dist/hooks/usePrevious.js +11 -0
- package/dist/lib/helpers.cjs +1 -0
- package/dist/lib/helpers.d.ts +2 -0
- package/dist/lib/helpers.js +4 -0
- package/dist/lib/helpers.test.d.ts +1 -0
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts +5 -1
- package/dist/lib/utils.js +17 -12
- package/dist/localeStrings/en/epo-widget-lib.json +32 -0
- package/dist/widgets/ColorTool/Actions/index.js +9 -9
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.cjs +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.d.ts +3 -0
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.js +42 -66
- package/dist/widgets/ColorTool/ImageComposite/styles.cjs +5 -7
- package/dist/widgets/ColorTool/ImageComposite/styles.js +9 -9
- package/dist/widgets/ColorTool/hooks/useFilteredImages.cjs +1 -0
- package/dist/widgets/ColorTool/hooks/useFilteredImages.d.ts +8 -0
- package/dist/widgets/ColorTool/hooks/useFilteredImages.js +36 -0
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/index.d.ts +11 -0
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/index.js +38 -0
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/styles.cjs +9 -0
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/styles.d.ts +275 -0
- package/dist/widgets/LightCurvePlot/A11Y/LightCurveLabel/styles.js +14 -0
- package/dist/widgets/LightCurvePlot/DM15Display/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/DM15Display/index.d.ts +15 -0
- package/dist/widgets/LightCurvePlot/DM15Display/index.js +40 -0
- package/dist/widgets/LightCurvePlot/DM15Display/styles.cjs +12 -0
- package/dist/widgets/{ColorTool/ImageComposite → LightCurvePlot/DM15Display}/styles.d.ts +2 -2
- package/dist/widgets/LightCurvePlot/DM15Display/styles.js +18 -0
- package/dist/widgets/LightCurvePlot/LightCurve/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/LightCurve/index.d.ts +12 -0
- package/dist/widgets/LightCurvePlot/LightCurve/index.js +29 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.d.ts +10 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.js +52 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.cjs +37 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.js +46 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.d.ts +12 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +132 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.cjs +29 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +1378 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +41 -0
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.d.ts +15 -0
- package/dist/widgets/LightCurvePlot/PlotWithoutCurve/index.js +20 -0
- package/dist/widgets/LightCurvePlot/Point/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/Point/index.d.ts +11 -0
- package/dist/widgets/LightCurvePlot/Point/index.js +68 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.d.ts +13 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.js +163 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.cjs +31 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.d.ts +557 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.js +40 -0
- package/dist/widgets/LightCurvePlot/defaults.cjs +1 -0
- package/dist/widgets/LightCurvePlot/defaults.d.ts +17 -0
- package/dist/widgets/LightCurvePlot/defaults.js +19 -0
- package/dist/widgets/LightCurvePlot/helpers.cjs +1 -0
- package/dist/widgets/LightCurvePlot/helpers.d.ts +23 -0
- package/dist/widgets/LightCurvePlot/helpers.js +23 -0
- package/dist/widgets/LightCurvePlot/helpers.test.d.ts +1 -0
- package/dist/widgets/LightCurvePlot/index.d.ts +2 -0
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.js +15 -15
- package/dist/widgets/SupernovaThreeVector/styles.cjs +30 -20
- package/dist/widgets/SupernovaThreeVector/styles.js +29 -18
- package/package.json +2 -1
- package/dist/hooks/useImage.cjs +0 -1
- package/dist/hooks/useImage.d.ts +0 -10
- package/dist/hooks/useImage.js +0 -31
- package/dist/widgets/ColorTool/CompositeRender/index.cjs +0 -1
- package/dist/widgets/ColorTool/CompositeRender/index.d.ts +0 -9
- package/dist/widgets/ColorTool/CompositeRender/index.js +0 -16
- package/dist/widgets/ColorTool/CompositeRender/styles.cjs +0 -3
- package/dist/widgets/ColorTool/CompositeRender/styles.d.ts +0 -274
- package/dist/widgets/ColorTool/CompositeRender/styles.js +0 -8
- package/dist/widgets/ColorTool/OffscreenFilter/index.cjs +0 -1
- package/dist/widgets/ColorTool/OffscreenFilter/index.d.ts +0 -15
- package/dist/widgets/ColorTool/OffscreenFilter/index.js +0 -27
- /package/dist/{widgets/SupernovaThreeVector/LiveLabel → atomic/LiveRegion}/styles.cjs +0 -0
- /package/dist/{widgets/SupernovaThreeVector/LiveLabel → atomic/LiveRegion}/styles.d.ts +0 -0
- /package/dist/{widgets/SupernovaThreeVector/LiveLabel → atomic/LiveRegion}/styles.js +0 -0
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ImageFilter } from "../ColorTool";
|
|
3
|
+
import { ImageShape } from "@rubin-epo/epo-react-lib/Image";
|
|
3
4
|
interface ImageCompositeProps {
|
|
4
5
|
filters: ImageFilter[];
|
|
6
|
+
images: Array<ImageShape>;
|
|
5
7
|
width: number;
|
|
6
8
|
height: number;
|
|
7
9
|
selectedObjectName: string;
|
|
10
|
+
isDisplayOnly?: boolean;
|
|
8
11
|
className?: string;
|
|
9
12
|
}
|
|
10
13
|
declare const ImageComposite: import("react").ForwardRefExoticComponent<ImageCompositeProps & {
|
|
@@ -1,82 +1,58 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
const C = j(
|
|
2
|
+
import { jsxs as y, jsx as c } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as I, useState as f } from "react";
|
|
4
|
+
import { isFilterActive as $ } from "../lib/utils.js";
|
|
5
|
+
import A from "../hooks/useFilteredImages.js";
|
|
6
|
+
import { mergeCanvases as R } from "../lib/canvas.js";
|
|
7
|
+
import { ImageContainer as j, Loader as F, Image as W } from "./styles.js";
|
|
8
|
+
const p = I(
|
|
10
9
|
({
|
|
11
|
-
filters:
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
14
|
-
selectedObjectName:
|
|
15
|
-
className:
|
|
16
|
-
children:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
10
|
+
filters: r,
|
|
11
|
+
width: o = 600,
|
|
12
|
+
height: e = 600,
|
|
13
|
+
selectedObjectName: s,
|
|
14
|
+
className: l,
|
|
15
|
+
children: g,
|
|
16
|
+
isDisplayOnly: d,
|
|
17
|
+
images: x
|
|
18
|
+
}, i) => {
|
|
19
|
+
var n;
|
|
20
|
+
const [C, u] = f(s), a = $(r);
|
|
21
|
+
s !== C && u(s);
|
|
22
|
+
const [v, t] = A({
|
|
23
|
+
images: x,
|
|
24
|
+
filters: r
|
|
25
|
+
}), m = (n = i == null ? void 0 : i.current) == null ? void 0 : n.getContext("2d");
|
|
26
|
+
return m && (m.clearRect(0, 0, o, e), R(m, v, o, e)), /* @__PURE__ */ y(
|
|
27
|
+
j,
|
|
28
28
|
{
|
|
29
|
-
className: f,
|
|
30
29
|
style: {
|
|
31
|
-
|
|
30
|
+
aspectRatio: `${o} / ${e}`,
|
|
31
|
+
maxWidth: d ? `${o}px` : void 0,
|
|
32
|
+
"--image-container-opacity": !t && a ? 1 : 0.1
|
|
32
33
|
},
|
|
34
|
+
className: l,
|
|
33
35
|
children: [
|
|
34
|
-
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
36
|
+
t && a && /* @__PURE__ */ c(F, { isVisible: t }),
|
|
37
|
+
/* @__PURE__ */ c(
|
|
38
|
+
W,
|
|
37
39
|
{
|
|
38
|
-
style: { "--loading-opacity":
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
onChangeCallback: (R) => v(a, R),
|
|
46
|
-
url: k,
|
|
47
|
-
color: x,
|
|
48
|
-
width: s,
|
|
49
|
-
height: i,
|
|
50
|
-
filters: {
|
|
51
|
-
brightness: A,
|
|
52
|
-
contrast: 1.3
|
|
53
|
-
},
|
|
54
|
-
onLoadCallback: h
|
|
55
|
-
},
|
|
56
|
-
F
|
|
57
|
-
);
|
|
58
|
-
}),
|
|
59
|
-
/* @__PURE__ */ n(
|
|
60
|
-
$,
|
|
61
|
-
{
|
|
62
|
-
layers: l.current,
|
|
63
|
-
renderLayers: o.map(({ active: e }) => e),
|
|
64
|
-
width: s,
|
|
65
|
-
height: i,
|
|
66
|
-
ref: y
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
]
|
|
40
|
+
style: { "--loading-opacity": t ? 0 : 1 },
|
|
41
|
+
ref: i,
|
|
42
|
+
role: "img",
|
|
43
|
+
hidden: t,
|
|
44
|
+
width: o,
|
|
45
|
+
height: e
|
|
70
46
|
}
|
|
71
47
|
),
|
|
72
|
-
|
|
48
|
+
g
|
|
73
49
|
]
|
|
74
50
|
}
|
|
75
51
|
);
|
|
76
52
|
}
|
|
77
53
|
);
|
|
78
|
-
|
|
79
|
-
const
|
|
54
|
+
p.displayName = "Widgets.ColorTool.ImageComposite";
|
|
55
|
+
const V = p;
|
|
80
56
|
export {
|
|
81
|
-
|
|
57
|
+
V as default
|
|
82
58
|
};
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),i=require("@rubin-epo/epo-react-lib/CircularLoader"),t=e=>e&&e.__esModule?e:{default:e},a=t(o),r=t(i),n=a.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: center;
|
|
4
4
|
align-items: center;
|
|
5
5
|
position: relative;
|
|
6
|
-
aspect-ratio: 1 / 1;
|
|
7
6
|
grid-area: image;
|
|
8
7
|
background-color: rgba(0, 0, 0, var(--image-container-opacity, 0.1));
|
|
9
8
|
transition: background-color ease var(--DURATION, 0.2s);
|
|
10
|
-
`,n=e.default.div`
|
|
11
9
|
width: 100%;
|
|
12
|
-
|
|
10
|
+
`,s=a.default.canvas`
|
|
13
11
|
opacity: var(--loading-opacity, 0);
|
|
14
12
|
transition: opacity ease var(--DURATION_SLOW, 0.4s);
|
|
13
|
+
width: 100%;
|
|
14
|
+
`,c=a.default(r.default)`
|
|
15
15
|
position: absolute;
|
|
16
|
-
|
|
17
|
-
left: 0;
|
|
18
|
-
`;exports.ImageContainer=o;exports.LoadingContainer=n;
|
|
16
|
+
`;exports.Image=s;exports.ImageContainer=n;exports.Loader=c;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import a from "styled-components";
|
|
3
|
+
import o from "@rubin-epo/epo-react-lib/CircularLoader";
|
|
4
|
+
const e = a.div`
|
|
4
5
|
display: flex;
|
|
5
6
|
justify-content: center;
|
|
6
7
|
align-items: center;
|
|
7
8
|
position: relative;
|
|
8
|
-
aspect-ratio: 1 / 1;
|
|
9
9
|
grid-area: image;
|
|
10
10
|
background-color: rgba(0, 0, 0, var(--image-container-opacity, 0.1));
|
|
11
11
|
transition: background-color ease var(--DURATION, 0.2s);
|
|
12
|
-
`, o = t.div`
|
|
13
12
|
width: 100%;
|
|
14
|
-
|
|
13
|
+
`, r = a.canvas`
|
|
15
14
|
opacity: var(--loading-opacity, 0);
|
|
16
15
|
transition: opacity ease var(--DURATION_SLOW, 0.4s);
|
|
16
|
+
width: 100%;
|
|
17
|
+
`, n = a(o)`
|
|
17
18
|
position: absolute;
|
|
18
|
-
top: 0;
|
|
19
|
-
left: 0;
|
|
20
19
|
`;
|
|
21
20
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
r as Image,
|
|
22
|
+
e as ImageContainer,
|
|
23
|
+
n as Loader
|
|
24
24
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react"),q=require("lodash/isEqual"),w=require("../../../hooks/usePrevious.cjs"),g=require("../lib/canvas.cjs"),S=t=>t&&t.__esModule?t:{default:t},b=S(q),y=({images:t,filters:i})=>{const v=w.default(t),[m,d]=l.useState(0),[n,I]=l.useState(),h=n==null?void 0:n.some(({complete:s})=>!s),u=m!==t.length&&h;if(l.useLayoutEffect(()=>{b.default(v,t)||(d(0),I(t.map(({url:s,width:o,height:c})=>{const e=new Image(o,c);return e.onload=()=>{d(a=>a+1)},e.src=s,e})))},[t]),u)return[[],!!u];const f=[...n||[]].map((s,o)=>{if(!i[o].active)return;const c=document.createElement("canvas"),e=c.getContext("2d");if(e){const{width:a,height:r}=s,{color:p="transparent",brightness:_}=i[o];e.canvas.width=a,e.canvas.height=r,e.clearRect(0,0,a,r),e.filter=g.getFilters({brightness:_,contrast:1.3}),e.drawImage(s,0,0,a,r),g.updateColor(e,p,a,r)}return c}).filter(s=>!!s);return console.log({canvases:f}),[f,!!u]},E=y;exports.default=E;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ImageShape } from "@rubin-epo/epo-react-lib/Image";
|
|
2
|
+
import { ImageFilter } from "../ColorTool";
|
|
3
|
+
interface useFilteredImagesProps {
|
|
4
|
+
images: Array<ImageShape>;
|
|
5
|
+
filters: Array<ImageFilter>;
|
|
6
|
+
}
|
|
7
|
+
declare const useFilteredImages: ({ images, filters, }: useFilteredImagesProps) => [Array<HTMLCanvasElement>, boolean];
|
|
8
|
+
export default useFilteredImages;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useState as l, useLayoutEffect as w } from "react";
|
|
3
|
+
import x from "lodash/isEqual";
|
|
4
|
+
import F from "../../../hooks/usePrevious.js";
|
|
5
|
+
import { getFilters as L, updateColor as y } from "../lib/canvas.js";
|
|
6
|
+
const C = ({
|
|
7
|
+
images: s,
|
|
8
|
+
filters: u
|
|
9
|
+
}) => {
|
|
10
|
+
const f = F(s), [g, m] = l(0), [n, p] = l(), v = n == null ? void 0 : n.some(({ complete: e }) => !e), i = g !== s.length && v;
|
|
11
|
+
if (w(() => {
|
|
12
|
+
x(f, s) || (m(0), p(
|
|
13
|
+
s.map(({ url: e, width: a, height: r }) => {
|
|
14
|
+
const t = new Image(a, r);
|
|
15
|
+
return t.onload = () => {
|
|
16
|
+
m((o) => o + 1);
|
|
17
|
+
}, t.src = e, t;
|
|
18
|
+
})
|
|
19
|
+
));
|
|
20
|
+
}, [s]), i)
|
|
21
|
+
return [[], !!i];
|
|
22
|
+
const d = [...n || []].map((e, a) => {
|
|
23
|
+
if (!u[a].active)
|
|
24
|
+
return;
|
|
25
|
+
const r = document.createElement("canvas"), t = r.getContext("2d");
|
|
26
|
+
if (t) {
|
|
27
|
+
const { width: o, height: c } = e, { color: I = "transparent", brightness: h } = u[a];
|
|
28
|
+
t.canvas.width = o, t.canvas.height = c, t.clearRect(0, 0, o, c), t.filter = L({ brightness: h, contrast: 1.3 }), t.drawImage(e, 0, 0, o, c), y(t, I, o, c);
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}).filter((e) => !!e);
|
|
32
|
+
return console.log({ canvases: d }), [d, !!i];
|
|
33
|
+
}, R = C;
|
|
34
|
+
export {
|
|
35
|
+
R as default
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=require("react/jsx-runtime"),d=require("react-i18next"),b=require("lodash/minBy"),v=require("../../helpers.cjs"),L=require("../../../../lib/utils.cjs"),f=require("./styles.cjs"),h=e=>e&&e.__esModule?e:{default:e},_=h(b),u=({data:e,gaussianWidth:n,yOffset:s,controlledById:l,estimatedPeak:o})=>{const{t:c,i18n:{language:r}}=d.useTranslation(),a=e.filter(({x:t})=>L.between(t,0,15)).reduce((t,m)=>t+v.calculateResidual(m,n,s),0)/e.length,{y:i}=_.default(e,({y:t})=>t)||{};return g.jsx(f.HiddenOutput,{form:l,children:c("light_curve.curve.description",{residual:a.toLocaleString(r,{minimumFractionDigits:2,maximumFractionDigits:2}),brightest:i==null?void 0:i.toLocaleString(r,{minimumFractionDigits:1,maximumFractionDigits:1}),context:o<Number(i)?"above":"below"})})};u.displayName="Widgets.LightCurvel.A11Y.LightCurveLabel";const p=u;exports.default=p;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import { formatMagnitudePoints } from "../../helpers";
|
|
3
|
+
interface LightCurveLabelProps {
|
|
4
|
+
data: ReturnType<typeof formatMagnitudePoints>;
|
|
5
|
+
controlledById?: string;
|
|
6
|
+
estimatedPeak: number;
|
|
7
|
+
gaussianWidth: number;
|
|
8
|
+
yOffset: number;
|
|
9
|
+
}
|
|
10
|
+
declare const LightCurveLabel: FunctionComponent<LightCurveLabelProps>;
|
|
11
|
+
export default LightCurveLabel;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as p } from "react-i18next";
|
|
4
|
+
import d from "lodash/minBy";
|
|
5
|
+
import { calculateResidual as f } from "../../helpers.js";
|
|
6
|
+
import { between as L } from "../../../../lib/utils.js";
|
|
7
|
+
import { HiddenOutput as b } from "./styles.js";
|
|
8
|
+
const o = ({
|
|
9
|
+
data: e,
|
|
10
|
+
gaussianWidth: m,
|
|
11
|
+
yOffset: n,
|
|
12
|
+
controlledById: u,
|
|
13
|
+
estimatedPeak: a
|
|
14
|
+
}) => {
|
|
15
|
+
const {
|
|
16
|
+
t: l,
|
|
17
|
+
i18n: { language: r }
|
|
18
|
+
} = p(), c = e.filter(({ x: i }) => L(i, 0, 15)).reduce(
|
|
19
|
+
(i, s) => i + f(s, m, n),
|
|
20
|
+
0
|
|
21
|
+
) / e.length, { y: t } = d(e, ({ y: i }) => i) || {};
|
|
22
|
+
return /* @__PURE__ */ g(b, { form: u, children: l("light_curve.curve.description", {
|
|
23
|
+
residual: c.toLocaleString(r, {
|
|
24
|
+
minimumFractionDigits: 2,
|
|
25
|
+
maximumFractionDigits: 2
|
|
26
|
+
}),
|
|
27
|
+
brightest: t == null ? void 0 : t.toLocaleString(r, {
|
|
28
|
+
minimumFractionDigits: 1,
|
|
29
|
+
maximumFractionDigits: 1
|
|
30
|
+
}),
|
|
31
|
+
context: a < Number(t) ? "above" : "below"
|
|
32
|
+
}) });
|
|
33
|
+
};
|
|
34
|
+
o.displayName = "Widgets.LightCurvel.A11Y.LightCurveLabel";
|
|
35
|
+
const y = o;
|
|
36
|
+
export {
|
|
37
|
+
y as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("styled-components"),p=t=>t&&t.__esModule?t:{default:t},o=p(e),u=o.default.output`
|
|
2
|
+
clip: rect(1px 1px 1px 1px); /* IE 6/7 */
|
|
3
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
4
|
+
height: 1px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
position: absolute;
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
width: 1px;
|
|
9
|
+
`;exports.HiddenOutput=u;
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
export declare const HiddenOutput: import("styled-components").IStyledComponent<"web", {
|
|
2
|
+
ref?: import("react").LegacyRef<HTMLOutputElement> | undefined;
|
|
3
|
+
key?: import("react").Key | null | undefined;
|
|
4
|
+
form?: string | undefined;
|
|
5
|
+
htmlFor?: string | undefined;
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
defaultChecked?: boolean | undefined;
|
|
8
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
9
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
10
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
11
|
+
accessKey?: string | undefined;
|
|
12
|
+
autoFocus?: boolean | undefined;
|
|
13
|
+
className?: string | undefined;
|
|
14
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
15
|
+
contextMenu?: string | undefined;
|
|
16
|
+
dir?: string | undefined;
|
|
17
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
18
|
+
hidden?: boolean | undefined;
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
lang?: string | undefined;
|
|
21
|
+
nonce?: string | undefined;
|
|
22
|
+
placeholder?: string | undefined;
|
|
23
|
+
slot?: string | undefined;
|
|
24
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
25
|
+
style?: import("react").CSSProperties | undefined;
|
|
26
|
+
tabIndex?: number | undefined;
|
|
27
|
+
title?: string | undefined;
|
|
28
|
+
translate?: "yes" | "no" | undefined;
|
|
29
|
+
radioGroup?: string | undefined;
|
|
30
|
+
role?: import("react").AriaRole | undefined;
|
|
31
|
+
about?: string | undefined;
|
|
32
|
+
content?: string | undefined;
|
|
33
|
+
datatype?: string | undefined;
|
|
34
|
+
inlist?: any;
|
|
35
|
+
prefix?: string | undefined;
|
|
36
|
+
property?: string | undefined;
|
|
37
|
+
rel?: string | undefined;
|
|
38
|
+
resource?: string | undefined;
|
|
39
|
+
rev?: string | undefined;
|
|
40
|
+
typeof?: string | undefined;
|
|
41
|
+
vocab?: string | undefined;
|
|
42
|
+
autoCapitalize?: string | undefined;
|
|
43
|
+
autoCorrect?: string | undefined;
|
|
44
|
+
autoSave?: string | undefined;
|
|
45
|
+
color?: string | undefined;
|
|
46
|
+
itemProp?: string | undefined;
|
|
47
|
+
itemScope?: boolean | undefined;
|
|
48
|
+
itemType?: string | undefined;
|
|
49
|
+
itemID?: string | undefined;
|
|
50
|
+
itemRef?: string | undefined;
|
|
51
|
+
results?: number | undefined;
|
|
52
|
+
security?: string | undefined;
|
|
53
|
+
unselectable?: "on" | "off" | undefined;
|
|
54
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
55
|
+
is?: string | undefined;
|
|
56
|
+
children?: import("react").ReactNode;
|
|
57
|
+
"aria-activedescendant"?: string | undefined;
|
|
58
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
59
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
60
|
+
"aria-braillelabel"?: string | undefined;
|
|
61
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
62
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
63
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
64
|
+
"aria-colcount"?: number | undefined;
|
|
65
|
+
"aria-colindex"?: number | undefined;
|
|
66
|
+
"aria-colindextext"?: string | undefined;
|
|
67
|
+
"aria-colspan"?: number | undefined;
|
|
68
|
+
"aria-controls"?: string | undefined;
|
|
69
|
+
"aria-current"?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
70
|
+
"aria-describedby"?: string | undefined;
|
|
71
|
+
"aria-description"?: string | undefined;
|
|
72
|
+
"aria-details"?: string | undefined;
|
|
73
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
74
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
75
|
+
"aria-errormessage"?: string | undefined;
|
|
76
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-flowto"?: string | undefined;
|
|
78
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
80
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
81
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
82
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
83
|
+
"aria-label"?: string | undefined;
|
|
84
|
+
"aria-labelledby"?: string | undefined;
|
|
85
|
+
"aria-level"?: number | undefined;
|
|
86
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
87
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
88
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
89
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
90
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
91
|
+
"aria-owns"?: string | undefined;
|
|
92
|
+
"aria-placeholder"?: string | undefined;
|
|
93
|
+
"aria-posinset"?: number | undefined;
|
|
94
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
95
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
96
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
97
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
98
|
+
"aria-roledescription"?: string | undefined;
|
|
99
|
+
"aria-rowcount"?: number | undefined;
|
|
100
|
+
"aria-rowindex"?: number | undefined;
|
|
101
|
+
"aria-rowindextext"?: string | undefined;
|
|
102
|
+
"aria-rowspan"?: number | undefined;
|
|
103
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
104
|
+
"aria-setsize"?: number | undefined;
|
|
105
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
106
|
+
"aria-valuemax"?: number | undefined;
|
|
107
|
+
"aria-valuemin"?: number | undefined;
|
|
108
|
+
"aria-valuenow"?: number | undefined;
|
|
109
|
+
"aria-valuetext"?: string | undefined;
|
|
110
|
+
dangerouslySetInnerHTML?: {
|
|
111
|
+
__html: string | TrustedHTML;
|
|
112
|
+
} | undefined;
|
|
113
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLOutputElement> | undefined;
|
|
114
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLOutputElement> | undefined;
|
|
115
|
+
onCut?: import("react").ClipboardEventHandler<HTMLOutputElement> | undefined;
|
|
116
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLOutputElement> | undefined;
|
|
117
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLOutputElement> | undefined;
|
|
118
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLOutputElement> | undefined;
|
|
119
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLOutputElement> | undefined;
|
|
120
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLOutputElement> | undefined;
|
|
121
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLOutputElement> | undefined;
|
|
122
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLOutputElement> | undefined;
|
|
123
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLOutputElement> | undefined;
|
|
124
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLOutputElement> | undefined;
|
|
125
|
+
onFocus?: import("react").FocusEventHandler<HTMLOutputElement> | undefined;
|
|
126
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLOutputElement> | undefined;
|
|
127
|
+
onBlur?: import("react").FocusEventHandler<HTMLOutputElement> | undefined;
|
|
128
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLOutputElement> | undefined;
|
|
129
|
+
onChange?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
130
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
131
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
132
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
133
|
+
onInput?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
134
|
+
onInputCapture?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
135
|
+
onReset?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
136
|
+
onResetCapture?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
137
|
+
onSubmit?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
138
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
139
|
+
onInvalid?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
140
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLOutputElement> | undefined;
|
|
141
|
+
onLoad?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
142
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
143
|
+
onError?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
144
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
145
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLOutputElement> | undefined;
|
|
146
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLOutputElement> | undefined;
|
|
147
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLOutputElement> | undefined;
|
|
148
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLOutputElement> | undefined;
|
|
149
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLOutputElement> | undefined;
|
|
150
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLOutputElement> | undefined;
|
|
151
|
+
onAbort?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
152
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
153
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
154
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
155
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
156
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
157
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
158
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
159
|
+
onEmptied?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
160
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
161
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
162
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
163
|
+
onEnded?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
164
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
165
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
166
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
167
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
168
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
169
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
170
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
171
|
+
onPause?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
172
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
173
|
+
onPlay?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
174
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
175
|
+
onPlaying?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
176
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
177
|
+
onProgress?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
178
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
179
|
+
onRateChange?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
180
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
181
|
+
onResize?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
182
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
183
|
+
onSeeked?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
184
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
185
|
+
onSeeking?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
186
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
187
|
+
onStalled?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
188
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
189
|
+
onSuspend?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
190
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
191
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
192
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
193
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
194
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
195
|
+
onWaiting?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
196
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
197
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
198
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
199
|
+
onClick?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
200
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
201
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
202
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
203
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
204
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
205
|
+
onDrag?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
206
|
+
onDragCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
207
|
+
onDragEnd?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
208
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
209
|
+
onDragEnter?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
210
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
211
|
+
onDragExit?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
212
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
213
|
+
onDragLeave?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
214
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
215
|
+
onDragOver?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
216
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
217
|
+
onDragStart?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
218
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
219
|
+
onDrop?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
220
|
+
onDropCapture?: import("react").DragEventHandler<HTMLOutputElement> | undefined;
|
|
221
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
222
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
223
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
224
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
225
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
226
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
227
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
228
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
229
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
230
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
231
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
232
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLOutputElement> | undefined;
|
|
233
|
+
onSelect?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
234
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLOutputElement> | undefined;
|
|
235
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
236
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
237
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
238
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
239
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
240
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
241
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
242
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLOutputElement> | undefined;
|
|
243
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
244
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
245
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
246
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
247
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
248
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
249
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
250
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
251
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
252
|
+
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
253
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
254
|
+
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
255
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
256
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
257
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
258
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
259
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
260
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
261
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
262
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLOutputElement> | undefined;
|
|
263
|
+
onScroll?: import("react").UIEventHandler<HTMLOutputElement> | undefined;
|
|
264
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLOutputElement> | undefined;
|
|
265
|
+
onWheel?: import("react").WheelEventHandler<HTMLOutputElement> | undefined;
|
|
266
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLOutputElement> | undefined;
|
|
267
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLOutputElement> | undefined;
|
|
268
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLOutputElement> | undefined;
|
|
269
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLOutputElement> | undefined;
|
|
270
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLOutputElement> | undefined;
|
|
271
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLOutputElement> | undefined;
|
|
272
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLOutputElement> | undefined;
|
|
273
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLOutputElement> | undefined;
|
|
274
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLOutputElement> | undefined;
|
|
275
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import p from "styled-components";
|
|
3
|
+
const e = p.output`
|
|
4
|
+
clip: rect(1px 1px 1px 1px); /* IE 6/7 */
|
|
5
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
6
|
+
height: 1px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
position: absolute;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
width: 1px;
|
|
11
|
+
`;
|
|
12
|
+
export {
|
|
13
|
+
e as HiddenOutput
|
|
14
|
+
};
|
|
@@ -0,0 +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"),m=require("../../../charts/ForeignObject/index.cjs"),i=require("../helpers.cjs"),s=require("./styles.cjs"),n=({gaussianWidth:t,className:r})=>{const{t:a,i18n:{language:l}}=u.useTranslation(),c=i.estimateMagnitude(0,t),o=i.estimateMagnitude(15,t)-c;return e.jsx(m.default,{children:e.jsxs(s.DisplayContainer,{className:r,children:[e.jsx(s.Line,{}),e.jsxs("math",{xmlns:"http://www.w3.org/1998/Math/MathML",children:[e.jsx("mn",{children:"Δ"}),e.jsxs("msub",{children:[e.jsx("mi",{children:"m"}),e.jsx("mn",{children:"15"})]}),e.jsx("mo",{children:"="}),e.jsx("mn",{role:"status","aria-live":"polite","aria-label":a("light_curve.deltaM15.label")||void 0,children:Number(o).toLocaleString(l,{minimumFractionDigits:2,maximumFractionDigits:2})})]})]})})};n.displayName="Widgets.LightCurve.DM15Display";const d=n;exports.default=d;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default DM15Display;
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {object} props
|
|
5
|
+
* @param {number} props.gaussianWidth
|
|
6
|
+
* @param {string} [props.className]
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
declare function DM15Display({ gaussianWidth, className }: {
|
|
10
|
+
gaussianWidth: number;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare namespace DM15Display {
|
|
14
|
+
const displayName: string;
|
|
15
|
+
}
|