@rubin-epo/epo-widget-lib 1.0.8 → 1.1.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/ColorTool.d.ts +2 -2
- package/dist/FilterTool.d.ts +2 -2
- package/dist/IsochronePlot.js +15 -16
- package/dist/SupernovaThreeVector.cjs +1 -1
- package/dist/SupernovaThreeVector.js +89 -84
- package/dist/ViewIndicator.cjs +1 -0
- package/dist/ViewIndicator.d.ts +3 -0
- package/dist/ViewIndicator.js +143 -0
- package/dist/atomic/Blinker/Controls/Controls.cjs +1 -1
- package/dist/atomic/Blinker/Controls/Controls.js +24 -25
- package/dist/charts/Bars/index.cjs +1 -1
- package/dist/charts/Bars/index.js +19 -21
- package/dist/charts/Base/index.cjs +1 -1
- package/dist/charts/Base/index.js +22 -23
- package/dist/charts/Base/styles.d.ts +1 -1
- package/dist/charts/ClippingContainer/index.cjs +1 -1
- package/dist/charts/ClippingContainer/index.js +9 -10
- package/dist/charts/ForeignObject/index.cjs +1 -1
- package/dist/charts/ForeignObject/index.js +8 -9
- package/dist/charts/Guidelines/index.cjs +1 -1
- package/dist/charts/Guidelines/index.js +11 -13
- package/dist/charts/PathFromPoints/index.js +1 -2
- package/dist/charts/Points/ErrorBar.cjs +1 -1
- package/dist/charts/Points/ErrorBar.js +9 -10
- package/dist/charts/Points/index.cjs +1 -1
- package/dist/charts/Points/index.js +30 -31
- package/dist/charts/Readout/index.cjs +1 -1
- package/dist/charts/Readout/index.js +24 -17
- package/dist/charts/ScatterPlot/index.cjs +1 -1
- package/dist/charts/ScatterPlot/index.js +79 -77
- package/dist/charts/Tooltip/index.cjs +1 -1
- package/dist/charts/Tooltip/index.js +14 -15
- package/dist/charts/Viewport/index.cjs +1 -1
- package/dist/charts/Viewport/index.js +13 -14
- package/dist/charts/XAxis/index.cjs +1 -1
- package/dist/charts/XAxis/index.js +22 -24
- package/dist/charts/YAxis/index.cjs +1 -1
- package/dist/charts/YAxis/index.js +17 -18
- package/dist/charts/canvas/Points/index.cjs +1 -1
- package/dist/charts/canvas/Points/index.js +27 -29
- package/dist/charts/defaults.cjs +1 -1
- package/dist/charts/defaults.js +13 -13
- package/dist/charts/styles.d.ts +6 -6
- package/dist/layout/Controls/index.d.ts +1 -1
- package/dist/lib/reimg.cjs +1 -1
- package/dist/lib/reimg.js +19 -19
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.js +11 -15
- package/dist/widgets/CameraFilter/styles.d.ts +5 -5
- package/dist/widgets/ColorTool/Actions/Export/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/Export/index.js +17 -18
- package/dist/widgets/ColorTool/Actions/index.cjs +1 -1
- package/dist/widgets/ColorTool/Actions/index.d.ts +1 -1
- package/dist/widgets/ColorTool/Actions/index.js +21 -22
- package/dist/widgets/ColorTool/FilterControls/FilterControls.cjs +1 -1
- package/dist/widgets/ColorTool/FilterControls/FilterControls.d.ts +1 -1
- package/dist/widgets/ColorTool/FilterControls/FilterControls.js +32 -33
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.cjs +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.d.ts +1 -1
- package/dist/widgets/ColorTool/ImageComposite/ImageComposite.js +22 -23
- package/dist/widgets/ColorTool/__mocks__/index.d.ts +15 -0
- package/dist/widgets/ColorTool/hooks/useFilteredImages.cjs +1 -1
- package/dist/widgets/ColorTool/hooks/useFilteredImages.d.ts +1 -1
- package/dist/widgets/ColorTool/hooks/useFilteredImages.js +9 -10
- package/dist/widgets/ColorTool/index.d.ts +46 -1
- package/dist/widgets/ColorTool/lib/server.d.ts +1 -1
- package/dist/widgets/ColorTool/lib/utils.d.ts +1 -1
- package/dist/widgets/FilterTool/index.d.ts +12 -1
- package/dist/widgets/FilterTool/styles.d.ts +6 -6
- package/dist/widgets/IsochronePlot/A11Y/CurveFit.cjs +1 -1
- package/dist/widgets/IsochronePlot/A11Y/CurveFit.js +22 -23
- package/dist/widgets/IsochronePlot/Controls/index.cjs +1 -1
- package/dist/widgets/IsochronePlot/Controls/index.js +22 -23
- package/dist/widgets/IsochronePlot/defaults.cjs +1 -1
- package/dist/widgets/IsochronePlot/defaults.js +2 -2
- package/dist/widgets/LightCurvePlot/Plot/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/Plot/index.js +28 -29
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/index.js +20 -21
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/DM15Display/index.js +11 -12
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.js +20 -21
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +2 -2
- package/dist/widgets/LightCurvePlot/defaults.cjs +1 -1
- package/dist/widgets/LightCurvePlot/defaults.js +2 -2
- package/dist/widgets/SourceSelector/SourceMap/index.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceMap/index.js +12 -13
- package/dist/widgets/SourceSelector/SourceMap/styles.d.ts +2 -2
- package/dist/widgets/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.js +39 -44
- package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Histogram/index.js +36 -36
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.js +16 -17
- package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +63 -58
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -7
- package/dist/widgets/SupernovaThreeVector/styles.cjs +13 -19
- package/dist/widgets/SupernovaThreeVector/styles.js +21 -31
- package/dist/widgets/ViewIndicator/index.d.ts +13 -0
- package/dist/widgets/ViewIndicator/styles.cjs +52 -0
- package/dist/widgets/ViewIndicator/styles.d.ts +4402 -0
- package/dist/widgets/ViewIndicator/styles.js +67 -0
- package/package.json +65 -5
- package/dist/CameraFilter.cjs +0 -1
- package/dist/CameraFilter.d.ts +0 -3
- package/dist/CameraFilter.js +0 -102
- package/dist/Charts.cjs +0 -1
- package/dist/Charts.d.ts +0 -1
- package/dist/Charts.js +0 -24
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.cjs +0 -1
- package/dist/widgets/CameraFilter/CondensedFilterRanges/CondensedFilterRanges.js +0 -62
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.cjs +0 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/ColorLabels/ColorLabels.js +0 -100
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.cjs +0 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumDisplay.js +0 -98
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.cjs +0 -1
- package/dist/widgets/CameraFilter/SpectrumDisplay/SpectrumLabels/SpectrumLabels.js +0 -59
- package/dist/widgets/CameraFilter/data.cjs +0 -1
- package/dist/widgets/CameraFilter/data.js +0 -84
- package/dist/widgets/CameraFilter/styles.cjs +0 -105
- package/dist/widgets/CameraFilter/styles.js +0 -128
- package/dist/widgets/ColorTool/ColorTool.d.ts +0 -46
- package/dist/widgets/FilterTool/FilterTool.d.ts +0 -12
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as C, jsx as c } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as f, useState as v } from "react";
|
|
4
4
|
import { isFilterActive as x } from "../lib/utils.js";
|
|
5
|
-
import
|
|
6
|
-
import { mergeCanvases as
|
|
7
|
-
import { ImageContainer as
|
|
8
|
-
const
|
|
5
|
+
import I from "../hooks/useFilteredImages.js";
|
|
6
|
+
import { mergeCanvases as A } from "../lib/canvas.js";
|
|
7
|
+
import { ImageContainer as j, Loader as F, Image as R } from "./styles.js";
|
|
8
|
+
const b = f(
|
|
9
9
|
({
|
|
10
|
-
filters:
|
|
10
|
+
filters: m,
|
|
11
11
|
width: e = 600,
|
|
12
12
|
height: i = 600,
|
|
13
|
-
selectedObjectName:
|
|
13
|
+
selectedObjectName: r,
|
|
14
14
|
className: l,
|
|
15
|
-
children:
|
|
16
|
-
images:
|
|
15
|
+
children: p,
|
|
16
|
+
images: g
|
|
17
17
|
}, t) => {
|
|
18
18
|
var n;
|
|
19
|
-
const [
|
|
20
|
-
|
|
21
|
-
const [y, o] =
|
|
22
|
-
images:
|
|
23
|
-
filters:
|
|
24
|
-
}),
|
|
25
|
-
return
|
|
26
|
-
|
|
19
|
+
const [d, u] = v(r), a = x(m);
|
|
20
|
+
r !== d && u(r);
|
|
21
|
+
const [y, o] = I({
|
|
22
|
+
images: g,
|
|
23
|
+
filters: m
|
|
24
|
+
}), s = (n = t == null ? void 0 : t.current) == null ? void 0 : n.getContext("2d");
|
|
25
|
+
return s && (s.clearRect(0, 0, e, i), A(s, y, e, i)), /* @__PURE__ */ C(
|
|
26
|
+
j,
|
|
27
27
|
{
|
|
28
28
|
style: {
|
|
29
29
|
"--image-container-opacity": !o && a ? 1 : 0.1
|
|
30
30
|
},
|
|
31
31
|
className: l,
|
|
32
32
|
children: [
|
|
33
|
-
o && a && /* @__PURE__ */ c(
|
|
33
|
+
o && a && /* @__PURE__ */ c(F, { isVisible: o }),
|
|
34
34
|
/* @__PURE__ */ c(
|
|
35
|
-
|
|
35
|
+
R,
|
|
36
36
|
{
|
|
37
37
|
style: { "--loading-opacity": o ? 0 : 1 },
|
|
38
38
|
role: "img",
|
|
@@ -42,14 +42,13 @@ const p = f(
|
|
|
42
42
|
ref: t
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
|
|
45
|
+
p
|
|
46
46
|
]
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
const W = p;
|
|
51
|
+
b.displayName = "Widgets.ColorTool.ImageComposite";
|
|
53
52
|
export {
|
|
54
|
-
|
|
53
|
+
b as default
|
|
55
54
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AstroCategory } from '..';
|
|
2
|
+
|
|
3
|
+
export declare const colorOptions: {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const multiSpectralOptions: {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
}[];
|
|
13
|
+
export declare const readOnlyData: AstroCategory[];
|
|
14
|
+
export declare const multiData: AstroCategory[];
|
|
15
|
+
export declare const singleData: AstroCategory[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),_=require("lodash/isEqual"),q=require("../../../hooks/usePrevious.cjs"),f=require("../lib/canvas.cjs"),w=t=>t&&t.__esModule?t:{default:t},y=w(_),S=({images:t,filters:l})=>{const g=q.default(t),[v,d]=i.useState(0),[n,m]=i.useState(),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),_=require("lodash/isEqual"),q=require("../../../hooks/usePrevious.cjs"),f=require("../lib/canvas.cjs"),w=t=>t&&t.__esModule?t:{default:t},y=w(_),S=({images:t,filters:l})=>{const g=q.default(t),[v,d]=i.useState(0),[n,m]=i.useState(),h=n==null?void 0:n.some(({complete:s})=>!s),u=v!==t.length&&h;return i.useLayoutEffect(()=>{y.default(g,t)||(d(0),m(t.map(({url:s,width:o,height:r})=>{const e=new Image(o,r);return e.crossOrigin="anonymous",e.onload=()=>{d(a=>a+1)},e.src=s,e})))},[t]),u?[[],!!u]:[[...n||[]].map((s,o)=>{if(!l[o].active)return;const r=document.createElement("canvas"),e=r.getContext("2d");if(e){const{width:a,height:c}=s,{color:p="transparent",brightness:I}=l[o];e.canvas.width=a,e.canvas.height=c,e.clearRect(0,0,a,c),e.filter=f.getFilters({brightness:I,contrast:1.3}),e.drawImage(s,0,0,a,c),f.updateColor(e,p,a,c)}return r}).filter(s=>!!s),!!u]};exports.default=S;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useState as d, useLayoutEffect as
|
|
2
|
+
import { useState as d, useLayoutEffect as I } from "react";
|
|
3
3
|
import w from "lodash/isEqual";
|
|
4
4
|
import x from "../../../hooks/usePrevious.js";
|
|
5
|
-
import { getFilters as y, updateColor as
|
|
6
|
-
const
|
|
5
|
+
import { getFilters as y, updateColor as L } from "../lib/canvas.js";
|
|
6
|
+
const O = ({
|
|
7
7
|
images: s,
|
|
8
8
|
filters: u
|
|
9
9
|
}) => {
|
|
10
10
|
const l = x(s), [f, m] = d(0), [n, g] = d(), p = n == null ? void 0 : n.some(({ complete: e }) => !e), i = f !== s.length && p;
|
|
11
|
-
return
|
|
11
|
+
return I(() => {
|
|
12
12
|
w(l, s) || (m(0), g(
|
|
13
13
|
s.map(({ url: e, width: a, height: r }) => {
|
|
14
14
|
const t = new Image(a, r);
|
|
@@ -18,16 +18,15 @@ const L = ({
|
|
|
18
18
|
})
|
|
19
19
|
));
|
|
20
20
|
}, [s]), i ? [[], !!i] : [[...n || []].map((e, a) => {
|
|
21
|
-
if (!u[a].active)
|
|
22
|
-
return;
|
|
21
|
+
if (!u[a].active) return;
|
|
23
22
|
const r = document.createElement("canvas"), t = r.getContext("2d");
|
|
24
23
|
if (t) {
|
|
25
|
-
const { width: o, height: c } = e, { color: v = "transparent", brightness:
|
|
26
|
-
t.canvas.width = o, t.canvas.height = c, t.clearRect(0, 0, o, c), t.filter = y({ brightness:
|
|
24
|
+
const { width: o, height: c } = e, { color: v = "transparent", brightness: h } = u[a];
|
|
25
|
+
t.canvas.width = o, t.canvas.height = c, t.clearRect(0, 0, o, c), t.filter = y({ brightness: h, contrast: 1.3 }), t.drawImage(e, 0, 0, o, c), L(t, v, o, c);
|
|
27
26
|
}
|
|
28
27
|
return r;
|
|
29
28
|
}).filter((e) => !!e), !!i];
|
|
30
|
-
}
|
|
29
|
+
};
|
|
31
30
|
export {
|
|
32
|
-
|
|
31
|
+
O as default
|
|
33
32
|
};
|
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { ListboxOption } from '@rubin-epo/epo-react-lib/SelectListbox';
|
|
3
|
+
|
|
4
|
+
export interface ImageFilter {
|
|
5
|
+
label: string;
|
|
6
|
+
defaultColor?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
active: boolean;
|
|
9
|
+
image: string;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
value: number;
|
|
12
|
+
defaultValue?: number;
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
brightness?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface AstroObject {
|
|
18
|
+
name: string;
|
|
19
|
+
filters: ImageFilter[];
|
|
20
|
+
}
|
|
21
|
+
export interface AstroCategory {
|
|
22
|
+
type: string;
|
|
23
|
+
objects: AstroObject[];
|
|
24
|
+
}
|
|
25
|
+
export type ColorToolAction = "reset" | "export" | "save";
|
|
26
|
+
interface ColorToolConfig {
|
|
27
|
+
actions?: Array<ColorToolAction>;
|
|
28
|
+
/** pixel width of the images in the tool */
|
|
29
|
+
width?: number;
|
|
30
|
+
/** pixel height of the images in the tool */
|
|
31
|
+
height?: number;
|
|
32
|
+
hideSubtitle?: boolean;
|
|
33
|
+
}
|
|
34
|
+
interface ColorToolProps {
|
|
35
|
+
selectionCallback: (selectedData: AstroObject) => void;
|
|
36
|
+
data: AstroCategory[];
|
|
37
|
+
selectedData: AstroObject;
|
|
38
|
+
objectOptions?: ListboxOption[];
|
|
39
|
+
colorOptions?: ListboxOption[];
|
|
40
|
+
isDisabled?: boolean;
|
|
41
|
+
isDisplayOnly?: boolean;
|
|
42
|
+
config?: ColorToolConfig;
|
|
43
|
+
className?: string;
|
|
44
|
+
}
|
|
45
|
+
declare const ColorTool: FunctionComponent<ColorToolProps>;
|
|
46
|
+
export default ColorTool;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExportFormat } from 'skia-canvas';
|
|
2
|
-
import { ImageFilter } from '
|
|
2
|
+
import { ImageFilter } from '..';
|
|
3
3
|
|
|
4
4
|
/** server safe renderer */
|
|
5
5
|
declare const getFilteredImageBase64: (filters?: Array<ImageFilter>, format?: ExportFormat, width?: number, height?: number) => Promise<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AstroCategory, AstroObject, ImageFilter } from '
|
|
1
|
+
import { AstroCategory, AstroObject, ImageFilter } from '..';
|
|
2
2
|
|
|
3
3
|
/** calculates a value that can be used in the CSS {@link https://developer.mozilla.org/en-US/docs/Web/CSS/filter-function/brightness brightness filter } */
|
|
4
4
|
export declare const getBrightnessValue: (min: number, max: number, value: number) => number;
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
|
|
3
|
+
type FilterColor = "violet" | "blue" | "green" | "yellow" | "orange" | "red";
|
|
4
|
+
interface FilterToolProps {
|
|
5
|
+
selectionCallback?: (color: FilterColor) => void;
|
|
6
|
+
selectedColor?: FilterColor | "none";
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
id?: string;
|
|
9
|
+
labelledById?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const FilterTool: FunctionComponent<FilterToolProps>;
|
|
12
|
+
export default FilterTool;
|
|
@@ -572,7 +572,7 @@ export declare const PrismSVG: import('styled-components').IStyledComponent<"web
|
|
|
572
572
|
accentHeight?: string | number | undefined;
|
|
573
573
|
accumulate?: "none" | "sum" | undefined;
|
|
574
574
|
additive?: "replace" | "sum" | undefined;
|
|
575
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
575
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
576
576
|
allowReorder?: "yes" | "no" | undefined;
|
|
577
577
|
alphabetic?: string | number | undefined;
|
|
578
578
|
amplitude?: string | number | undefined;
|
|
@@ -1054,7 +1054,7 @@ export declare const WhiteLine: import('styled-components').IStyledComponent<"we
|
|
|
1054
1054
|
accentHeight?: string | number | undefined;
|
|
1055
1055
|
accumulate?: "none" | "sum" | undefined;
|
|
1056
1056
|
additive?: "replace" | "sum" | undefined;
|
|
1057
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
1057
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
1058
1058
|
allowReorder?: "yes" | "no" | undefined;
|
|
1059
1059
|
alphabetic?: string | number | undefined;
|
|
1060
1060
|
amplitude?: string | number | undefined;
|
|
@@ -1536,7 +1536,7 @@ export declare const Ray: import('styled-components').IStyledComponent<"web", {
|
|
|
1536
1536
|
accentHeight?: string | number | undefined;
|
|
1537
1537
|
accumulate?: "none" | "sum" | undefined;
|
|
1538
1538
|
additive?: "replace" | "sum" | undefined;
|
|
1539
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
1539
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
1540
1540
|
allowReorder?: "yes" | "no" | undefined;
|
|
1541
1541
|
alphabetic?: string | number | undefined;
|
|
1542
1542
|
amplitude?: string | number | undefined;
|
|
@@ -2018,7 +2018,7 @@ export declare const Arrow: import('styled-components').IStyledComponent<"web",
|
|
|
2018
2018
|
accentHeight?: string | number | undefined;
|
|
2019
2019
|
accumulate?: "none" | "sum" | undefined;
|
|
2020
2020
|
additive?: "replace" | "sum" | undefined;
|
|
2021
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2021
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2022
2022
|
allowReorder?: "yes" | "no" | undefined;
|
|
2023
2023
|
alphabetic?: string | number | undefined;
|
|
2024
2024
|
amplitude?: string | number | undefined;
|
|
@@ -2500,7 +2500,7 @@ export declare const PrismOutline: import('styled-components').IStyledComponent<
|
|
|
2500
2500
|
accentHeight?: string | number | undefined;
|
|
2501
2501
|
accumulate?: "none" | "sum" | undefined;
|
|
2502
2502
|
additive?: "replace" | "sum" | undefined;
|
|
2503
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2503
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2504
2504
|
allowReorder?: "yes" | "no" | undefined;
|
|
2505
2505
|
alphabetic?: string | number | undefined;
|
|
2506
2506
|
amplitude?: string | number | undefined;
|
|
@@ -2982,7 +2982,7 @@ export declare const Filter: import('styled-components').IStyledComponent<"web",
|
|
|
2982
2982
|
accentHeight?: string | number | undefined;
|
|
2983
2983
|
accumulate?: "none" | "sum" | undefined;
|
|
2984
2984
|
additive?: "replace" | "sum" | undefined;
|
|
2985
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2985
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2986
2986
|
allowReorder?: "yes" | "no" | undefined;
|
|
2987
2987
|
alphabetic?: string | number | undefined;
|
|
2988
2988
|
amplitude?: string | number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),b=require("../../../lib/utils.cjs"),k=require("react"),q=require("react-i18next"),d=({isochrone:r,points:h,offset:m,xScale:o,yScale:s,width:c,height:i,value:p})=>{const{t:g,i18n:{language:f}}=q.useTranslation(),v=b.buildPath(r,[0,m]),P=k.useMemo(()=>{const u=h.filter(({y:e})=>e<16),n=document.createElement("canvas");n.width=c,n.height=i;const t=n.getContext("2d");if(t){t.clearRect(0,0,c,i);const e=new Path2D(v);return t.lineWidth=15,t.stroke(e),u.filter(a=>{const x=o(a.x),I=s(a.y);return t.isPointInStroke(e,x,I)}).length/u.length}return 0},[r,o,s]);return l.jsx(l.Fragment,{children:g("isochrone_plot.output_screenreader",{...p,percent:Intl.NumberFormat(f,{style:"percent"}).format(P)})})};d.displayName="IsochronePlot.A11Y.CurveFit";exports.default=d;
|
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { buildPath as
|
|
4
|
-
import { useMemo as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
const
|
|
2
|
+
import { jsx as x, Fragment as I } from "react/jsx-runtime";
|
|
3
|
+
import { buildPath as k } from "../../../lib/utils.js";
|
|
4
|
+
import { useMemo as C } from "react";
|
|
5
|
+
import { useTranslation as F } from "react-i18next";
|
|
6
|
+
const y = ({
|
|
7
7
|
isochrone: o,
|
|
8
|
-
points:
|
|
9
|
-
offset:
|
|
8
|
+
points: u,
|
|
9
|
+
offset: m,
|
|
10
10
|
xScale: r,
|
|
11
11
|
yScale: s,
|
|
12
12
|
width: i,
|
|
13
13
|
height: c,
|
|
14
|
-
value:
|
|
14
|
+
value: p
|
|
15
15
|
}) => {
|
|
16
16
|
const {
|
|
17
|
-
t:
|
|
18
|
-
i18n: { language:
|
|
19
|
-
} =
|
|
20
|
-
const a =
|
|
17
|
+
t: f,
|
|
18
|
+
i18n: { language: h }
|
|
19
|
+
} = F(), d = k(o, [0, m]), g = C(() => {
|
|
20
|
+
const a = u.filter(({ y: e }) => e < 16), n = document.createElement("canvas");
|
|
21
21
|
n.width = i, n.height = c;
|
|
22
22
|
const t = n.getContext("2d");
|
|
23
23
|
if (t) {
|
|
24
24
|
t.clearRect(0, 0, i, c);
|
|
25
|
-
const e = new Path2D(
|
|
26
|
-
return t.lineWidth = 15, t.stroke(e), a.filter((
|
|
27
|
-
const P = r(
|
|
28
|
-
return t.isPointInStroke(e, P,
|
|
25
|
+
const e = new Path2D(d);
|
|
26
|
+
return t.lineWidth = 15, t.stroke(e), a.filter((l) => {
|
|
27
|
+
const P = r(l.x), v = s(l.y);
|
|
28
|
+
return t.isPointInStroke(e, P, v);
|
|
29
29
|
}).length / a.length;
|
|
30
30
|
}
|
|
31
31
|
return 0;
|
|
32
32
|
}, [o, r, s]);
|
|
33
|
-
return /* @__PURE__ */
|
|
34
|
-
...
|
|
35
|
-
percent: Intl.NumberFormat(
|
|
36
|
-
|
|
33
|
+
return /* @__PURE__ */ x(I, { children: f("isochrone_plot.output_screenreader", {
|
|
34
|
+
...p,
|
|
35
|
+
percent: Intl.NumberFormat(h, { style: "percent" }).format(
|
|
36
|
+
g
|
|
37
37
|
)
|
|
38
38
|
}) });
|
|
39
39
|
};
|
|
40
|
-
|
|
41
|
-
const A = l;
|
|
40
|
+
y.displayName = "IsochronePlot.A11Y.CurveFit";
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
y as default
|
|
44
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),_=require("@rubin-epo/epo-react-lib/HorizontalSlider"),p=require("../../../atomic/ControlLabel/index.cjs"),x=require("react-i18next"),f=t=>t&&t.__esModule?t:{default:t},h=f(_),u=({value:t,onChangeCallback:n,configs:s,localizers:i,isDisabled:c=!1})=>{const{t:a}=x.useTranslation(),d=(e,l)=>{n&&n({...t,[e]:l})},b={isDisabled:c,color:"var(--turquoise85, #12726D)"};return o.jsx(o.Fragment,{children:Object.keys(s).map(e=>o.jsx(p.default,{label:a(`isochrone_plot.controls.${e}.label`),input:l=>o.jsx(h.default,{labelledbyId:l,value:t[e],ariaValuetext:a(`isochrone_plot.controls.${e}.textValue`,{value:t[e]})||void 0,renderLabel:({valueNow:r})=>i[e](r),onChangeCallback:r=>d(e,r),...b,...s[e]}),labelBy:!0},e))})};u.displayName="Widgets.IsochronePlot.Controls";
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),_=require("@rubin-epo/epo-react-lib/HorizontalSlider"),p=require("../../../atomic/ControlLabel/index.cjs"),x=require("react-i18next"),f=t=>t&&t.__esModule?t:{default:t},h=f(_),u=({value:t,onChangeCallback:n,configs:s,localizers:i,isDisabled:c=!1})=>{const{t:a}=x.useTranslation(),d=(e,l)=>{n&&n({...t,[e]:l})},b={isDisabled:c,color:"var(--turquoise85, #12726D)"};return o.jsx(o.Fragment,{children:Object.keys(s).map(e=>o.jsx(p.default,{label:a(`isochrone_plot.controls.${e}.label`),input:l=>o.jsx(h.default,{labelledbyId:l,value:t[e],ariaValuetext:a(`isochrone_plot.controls.${e}.textValue`,{value:t[e]})||void 0,renderLabel:({valueNow:r})=>i[e](r),onChangeCallback:r=>d(e,r),...b,...s[e]}),labelBy:!0},e))})};u.displayName="Widgets.IsochronePlot.Controls";exports.default=u;
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as e, Fragment as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
const
|
|
2
|
+
import { jsx as e, Fragment as p } from "react/jsx-runtime";
|
|
3
|
+
import u from "@rubin-epo/epo-react-lib/HorizontalSlider";
|
|
4
|
+
import b from "../../../atomic/ControlLabel/index.js";
|
|
5
|
+
import { useTranslation as h } from "react-i18next";
|
|
6
|
+
const f = ({
|
|
7
7
|
value: r,
|
|
8
|
-
onChangeCallback:
|
|
9
|
-
configs:
|
|
10
|
-
localizers:
|
|
11
|
-
isDisabled:
|
|
8
|
+
onChangeCallback: a,
|
|
9
|
+
configs: n,
|
|
10
|
+
localizers: i,
|
|
11
|
+
isDisabled: c = !1
|
|
12
12
|
}) => {
|
|
13
|
-
const { t: s } =
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
isDisabled:
|
|
13
|
+
const { t: s } = h(), d = (o, t) => {
|
|
14
|
+
a && a({ ...r, [o]: t });
|
|
15
|
+
}, m = {
|
|
16
|
+
isDisabled: c,
|
|
17
17
|
color: "var(--turquoise85, #12726D)"
|
|
18
18
|
};
|
|
19
|
-
return /* @__PURE__ */ e(
|
|
20
|
-
|
|
19
|
+
return /* @__PURE__ */ e(p, { children: Object.keys(n).map((o) => /* @__PURE__ */ e(
|
|
20
|
+
b,
|
|
21
21
|
{
|
|
22
22
|
label: s(`isochrone_plot.controls.${o}.label`),
|
|
23
23
|
input: (t) => /* @__PURE__ */ e(
|
|
24
|
-
|
|
24
|
+
u,
|
|
25
25
|
{
|
|
26
26
|
labelledbyId: t,
|
|
27
27
|
value: r[o],
|
|
28
28
|
ariaValuetext: s(`isochrone_plot.controls.${o}.textValue`, {
|
|
29
29
|
value: r[o]
|
|
30
30
|
}) || void 0,
|
|
31
|
-
renderLabel: ({ valueNow: l }) =>
|
|
32
|
-
onChangeCallback: (l) =>
|
|
33
|
-
...
|
|
34
|
-
...
|
|
31
|
+
renderLabel: ({ valueNow: l }) => i[o](l),
|
|
32
|
+
onChangeCallback: (l) => d(o, l),
|
|
33
|
+
...m,
|
|
34
|
+
...n[o]
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
37
|
labelBy: !0
|
|
@@ -39,8 +39,7 @@ const i = ({
|
|
|
39
39
|
o
|
|
40
40
|
)) });
|
|
41
41
|
};
|
|
42
|
-
|
|
43
|
-
const j = i;
|
|
42
|
+
f.displayName = "Widgets.IsochronePlot.Controls";
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
f as default
|
|
46
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={width:600,height:600,xAxis:{step:1,min:-1,max:3},yAxis:{step:2,min:22,max:8},pointRadius:{sm:4,md:6,lg:6}}
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={width:600,height:600,xAxis:{step:1,min:-1,max:3},yAxis:{step:2,min:22,max:8},pointRadius:{sm:4,md:6,lg:6}};exports.default=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),D=require("react-i18next"),_=require("d3-array"),M=require("../../../charts/ScatterPlot/index.cjs");require("../../../atomic/PlotWrapper/index.cjs");const m=require("../../../lib/utils.cjs"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),D=require("react-i18next"),_=require("d3-array"),M=require("../../../charts/ScatterPlot/index.cjs");require("../../../atomic/PlotWrapper/index.cjs");const m=require("../../../lib/utils.cjs"),u=require("../defaults.cjs"),x=require("./styles.cjs"),I=require("../../../atomic/PlotWrapper/styles.cjs"),O=(l,c,p)=>{const o={};return Object.keys(l).forEach(e=>{const n=e==="top"||e==="bottom"?p:c,a=`${e.charAt(0).toUpperCase()}${e.slice(1)}`;o[`padding${a}`]=`${l[e]/n*100}%`}),o},y=({data:l,activeAlertId:c,xMin:p,xMax:o,yMin:d,yMax:e,width:n=u.default.width,height:a=u.default.height,name:q,slider:g,className:A,plotChildren:h})=>{const{t:i,i18n:{language:j}}=D.useTranslation(),v=m.mergeWithDefaults({min:_.min(l,({x:t})=>t),max:_.max(l,({x:t})=>t)},u.default.xAxis),W=m.mergeWithDefaults({min:p,max:o,label:i("light_curve.plot.x_label")},{...v,label:i("isochrone_plot.plot.x_label")}),s=m.mergeWithDefaults({min:d,max:e,label:i("light_curve.plot.y_label")},{...u.default.yAxis,label:i("isochrone_plot.plot.y_label")}),b={top:10,right:10,bottom:25,left:40};return r.jsxs(I.PlotWrapper,{className:A,children:[r.jsx(M.default,{width:n,height:a,margins:b,activePointId:c,title:q,xAxis:{...W},yAxis:{...s,step:s.min<s.max?Math.abs(s.step):s.step},data:{label:i("light_curve.plot.plot_label"),points:l},tooltip:({y:t})=>r.jsx(x.TooltipWrapper,{children:i("light_curve.plot.tooltip",{magnitude:t.toLocaleString(j,{minimumFractionDigits:2,maximumFractionDigits:2})})}),plotChildren:({xScale:t,yStart:P,yEnd:S,Data:f,...$})=>h?h({xScale:t,yStart:P,yEnd:S,Data:f,...$}):f}),g&&r.jsx(x.SliderOuterWrapper,{children:r.jsx(x.SliderInnerWrapper,{style:{...O(b,n,a)},children:g})})]})};y.displayName="Widgets.LightCurve.Plot";exports.default=y;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { min as
|
|
5
|
-
import
|
|
2
|
+
import { jsxs as $, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as j } from "react-i18next";
|
|
4
|
+
import { min as C, max as D } from "d3-array";
|
|
5
|
+
import F from "../../../charts/ScatterPlot/index.js";
|
|
6
6
|
import "../../../atomic/PlotWrapper/index.js";
|
|
7
7
|
import { mergeWithDefaults as x } from "../../../lib/utils.js";
|
|
8
8
|
import p from "../defaults.js";
|
|
9
|
-
import { TooltipWrapper as
|
|
10
|
-
import { PlotWrapper as
|
|
11
|
-
const
|
|
9
|
+
import { TooltipWrapper as I, SliderOuterWrapper as L, SliderInnerWrapper as M } from "./styles.js";
|
|
10
|
+
import { PlotWrapper as N } from "../../../atomic/PlotWrapper/styles.js";
|
|
11
|
+
const O = (i, m, c) => {
|
|
12
12
|
const r = {};
|
|
13
13
|
return Object.keys(i).forEach((t) => {
|
|
14
14
|
const s = t === "top" || t === "bottom" ? c : m, a = `${t.charAt(0).toUpperCase()}${t.slice(1)}`;
|
|
15
15
|
r[`padding${a}`] = `${i[t] / s * 100}%`;
|
|
16
16
|
}), r;
|
|
17
|
-
},
|
|
17
|
+
}, T = ({
|
|
18
18
|
data: i,
|
|
19
19
|
activeAlertId: m,
|
|
20
20
|
xMin: c,
|
|
@@ -23,24 +23,24 @@ const T = (i, m, c) => {
|
|
|
23
23
|
yMax: t,
|
|
24
24
|
width: s = p.width,
|
|
25
25
|
height: a = p.height,
|
|
26
|
-
name:
|
|
26
|
+
name: f,
|
|
27
27
|
slider: g,
|
|
28
|
-
className:
|
|
28
|
+
className: _,
|
|
29
29
|
plotChildren: h
|
|
30
30
|
}) => {
|
|
31
31
|
const {
|
|
32
32
|
t: e,
|
|
33
|
-
i18n: { language:
|
|
34
|
-
} =
|
|
33
|
+
i18n: { language: y }
|
|
34
|
+
} = j(), A = x(
|
|
35
35
|
{
|
|
36
|
-
min:
|
|
37
|
-
max:
|
|
36
|
+
min: C(i, ({ x: o }) => o),
|
|
37
|
+
max: D(i, ({ x: o }) => o)
|
|
38
38
|
},
|
|
39
39
|
p.xAxis
|
|
40
|
-
),
|
|
40
|
+
), v = x(
|
|
41
41
|
{ min: c, max: r, label: e("light_curve.plot.x_label") },
|
|
42
42
|
{
|
|
43
|
-
...
|
|
43
|
+
...A,
|
|
44
44
|
label: e("isochrone_plot.plot.x_label")
|
|
45
45
|
}
|
|
46
46
|
), l = x(
|
|
@@ -55,17 +55,17 @@ const T = (i, m, c) => {
|
|
|
55
55
|
bottom: 25,
|
|
56
56
|
left: 40
|
|
57
57
|
};
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ $(N, { className: _, children: [
|
|
59
59
|
/* @__PURE__ */ n(
|
|
60
|
-
|
|
60
|
+
F,
|
|
61
61
|
{
|
|
62
62
|
width: s,
|
|
63
63
|
height: a,
|
|
64
64
|
margins: d,
|
|
65
65
|
activePointId: m,
|
|
66
|
-
title:
|
|
66
|
+
title: f,
|
|
67
67
|
xAxis: {
|
|
68
|
-
...
|
|
68
|
+
...v
|
|
69
69
|
},
|
|
70
70
|
yAxis: {
|
|
71
71
|
...l,
|
|
@@ -75,26 +75,25 @@ const T = (i, m, c) => {
|
|
|
75
75
|
label: e("light_curve.plot.plot_label"),
|
|
76
76
|
points: i
|
|
77
77
|
},
|
|
78
|
-
tooltip: ({ y: o }) => /* @__PURE__ */ n(
|
|
79
|
-
magnitude: o.toLocaleString(
|
|
78
|
+
tooltip: ({ y: o }) => /* @__PURE__ */ n(I, { children: e("light_curve.plot.tooltip", {
|
|
79
|
+
magnitude: o.toLocaleString(y, {
|
|
80
80
|
minimumFractionDigits: 2,
|
|
81
81
|
maximumFractionDigits: 2
|
|
82
82
|
})
|
|
83
83
|
}) }),
|
|
84
|
-
plotChildren: ({ xScale: o, yStart: W, yEnd:
|
|
84
|
+
plotChildren: ({ xScale: o, yStart: W, yEnd: P, Data: b, ...S }) => h ? h({ xScale: o, yStart: W, yEnd: P, Data: b, ...S }) : b
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
g && /* @__PURE__ */ n(
|
|
88
|
-
|
|
87
|
+
g && /* @__PURE__ */ n(L, { children: /* @__PURE__ */ n(
|
|
88
|
+
M,
|
|
89
89
|
{
|
|
90
|
-
style: { ...
|
|
90
|
+
style: { ...O(d, s, a) },
|
|
91
91
|
children: g
|
|
92
92
|
}
|
|
93
93
|
) })
|
|
94
94
|
] });
|
|
95
95
|
};
|
|
96
|
-
|
|
97
|
-
const H = f;
|
|
96
|
+
T.displayName = "Widgets.LightCurve.Plot";
|
|
98
97
|
export {
|
|
99
|
-
|
|
98
|
+
T as default
|
|
100
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react/jsx-runtime"),g=require("react-i18next"),b=require("lodash/minBy"),f=require("../../../helpers.cjs"),v=require("../../../../../lib/utils.cjs"),_=require("./styles.cjs"),h=e=>e&&e.__esModule?e:{default:e},L=h(b),u=({data:e,gaussianWidth:n,yOffset:s,controlledById:l,estimatedPeak:o})=>{const{t:c,i18n:{language:r}}=g.useTranslation(),a=e.filter(({x:t})=>v.between(t,0,15)).reduce((t,m)=>t+f.calculateResidual(m,n,s),0)/e.length,{y:i}=L.default(e,({y:t})=>t)||{};return d.jsx(_.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";exports.default=u;
|