@rubin-epo/epo-widget-lib 0.8.1 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/SourceSelector.cjs +1 -1
- package/dist/SourceSelector.d.ts +2 -0
- package/dist/SourceSelector.js +8 -8
- package/dist/SupernovaThreeVector.js +4 -4
- 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.d.ts +3 -5
- package/dist/charts/Base/index.js +40 -24
- package/dist/charts/Base/styles.cjs +18 -7
- package/dist/charts/Base/styles.d.ts +272 -0
- package/dist/charts/Base/styles.js +18 -6
- 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 +20 -22
- package/dist/charts/Tooltip/styles.cjs +5 -3
- package/dist/charts/Tooltip/styles.d.ts +7 -0
- package/dist/charts/Tooltip/styles.js +9 -5
- 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.d.ts +2 -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 +30 -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 +33 -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 +11 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.js +54 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.cjs +42 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.js +51 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.d.ts +13 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +134 -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 +9 -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 +11 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.js +158 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.cjs +30 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.d.ts +288 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.js +38 -0
- package/dist/widgets/LightCurvePlot/defaults.cjs +1 -0
- package/dist/widgets/LightCurvePlot/defaults.d.ts +19 -0
- package/dist/widgets/LightCurvePlot/defaults.js +21 -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/SourceSelector/SourceSelector.cjs +1 -1
- package/dist/widgets/SourceSelector/SourceSelector.d.ts +2 -2
- package/dist/widgets/SourceSelector/SourceSelector.js +28 -28
- package/dist/widgets/SourceSelector/index.d.ts +2 -1
- package/dist/widgets/SupernovaThreeVector/Histogram/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Histogram/index.js +35 -35
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/LiveLabel/index.js +15 -15
- 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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import i from "styled-components";
|
|
3
|
+
import r from "../DM15Display/index.js";
|
|
4
|
+
const e = i.div`
|
|
5
|
+
--light-curve-padding: var(--PADDING_SMALL, 20px);
|
|
6
|
+
|
|
7
|
+
display: grid;
|
|
8
|
+
gap: var(--light-curve-padding);
|
|
9
|
+
grid-template-rows: 1fr min-content;
|
|
10
|
+
grid-template-columns: 1fr;
|
|
11
|
+
`;
|
|
12
|
+
i.div`
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
container-type: inline-size;
|
|
16
|
+
background-color: var(--white, #fff);
|
|
17
|
+
border: 1px solid var(--turquoise55, #009fa1);
|
|
18
|
+
gap: var(--light-curve-padding);
|
|
19
|
+
padding: var(--light-curve-padding);
|
|
20
|
+
`;
|
|
21
|
+
i.h3`
|
|
22
|
+
margin: 0;
|
|
23
|
+
`;
|
|
24
|
+
const o = i(r)`
|
|
25
|
+
background-color: var(--white, #fff);
|
|
26
|
+
margin: 2px 1em;
|
|
27
|
+
padding: 2px;
|
|
28
|
+
`, d = i.form`
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
gap: var(--light-curve-padding);
|
|
32
|
+
`, l = i.span`
|
|
33
|
+
display: block;
|
|
34
|
+
margin-block-end: var(--light-curve-padding);
|
|
35
|
+
`;
|
|
36
|
+
export {
|
|
37
|
+
e as Container,
|
|
38
|
+
l as ControlLabel,
|
|
39
|
+
d as Controls,
|
|
40
|
+
o as DM15Display
|
|
41
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),s=require("../ScatterPlot/index.cjs"),i=require("../helpers.cjs"),n=({alerts:e,peakMjd:t,...u})=>{const o=i.formatMagnitudePoints(e,t);return r.jsx(s.default,{...u,data:o})},l=n;exports.default=l;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
import { Alert } from '../../../types/astro';
|
|
3
|
+
import { ScatterPlotProps } from "../ScatterPlot";
|
|
4
|
+
export interface PlotWithoutCurveProps extends Omit<ScatterPlotProps, "data"> {
|
|
5
|
+
alerts: Array<Alert>;
|
|
6
|
+
peakMjd: number;
|
|
7
|
+
}
|
|
8
|
+
declare const PlotWithoutCurve: FunctionComponent<PlotWithoutCurveProps>;
|
|
9
|
+
export default PlotWithoutCurve;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import u from "../ScatterPlot/index.js";
|
|
3
|
+
import { formatMagnitudePoints as a } from "../helpers.js";
|
|
4
|
+
const e = ({
|
|
5
|
+
alerts: t,
|
|
6
|
+
peakMjd: o,
|
|
7
|
+
...r
|
|
8
|
+
}) => {
|
|
9
|
+
const i = a(t, o);
|
|
10
|
+
return /* @__PURE__ */ m(
|
|
11
|
+
u,
|
|
12
|
+
{
|
|
13
|
+
...r,
|
|
14
|
+
data: i
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
}, l = e;
|
|
18
|
+
export {
|
|
19
|
+
l as default
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),i=({x:n,y:s,error:t,onMouseOver:l,onMouseOut:a,description:o})=>e.jsxs("g",{role:"listitem","aria-label":o,transform:`translate(${n},${s})`,onMouseOver:l,onMouseOut:a,children:[e.jsx("line",{x:0,y1:t,y2:-t,stroke:"var(--black, #000)",strokeWidth:1,fill:"none"}),e.jsx("line",{x1:-3,x2:3,y1:t,y2:t,stroke:"var(--black, #000)",strokeWidth:1,fill:"none"}),e.jsx("line",{x1:-3,x2:3,y1:-t,y2:-t,stroke:"var(--black, #000)",strokeWidth:1,fill:"none"}),e.jsx("circle",{fill:"var(--turquoise85, #12726D)",r:6,cursor:"pointer"})]});i.displayName="Widgets.LightCurve.Point";const r=i;exports.default=r;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
interface LightCurvePointProps {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
error: number;
|
|
6
|
+
onMouseOver: () => void;
|
|
7
|
+
onMouseOut: () => void;
|
|
8
|
+
description?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const LightCurvePoint: FunctionComponent<LightCurvePointProps>;
|
|
11
|
+
export default LightCurvePoint;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
const n = ({
|
|
3
|
+
x: e,
|
|
4
|
+
y: a,
|
|
5
|
+
error: t,
|
|
6
|
+
onMouseOver: s,
|
|
7
|
+
onMouseOut: l,
|
|
8
|
+
description: o
|
|
9
|
+
}) => /* @__PURE__ */ r(
|
|
10
|
+
"g",
|
|
11
|
+
{
|
|
12
|
+
role: "listitem",
|
|
13
|
+
"aria-label": o,
|
|
14
|
+
transform: `translate(${e},${a})`,
|
|
15
|
+
onMouseOver: s,
|
|
16
|
+
onMouseOut: l,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ i(
|
|
19
|
+
"line",
|
|
20
|
+
{
|
|
21
|
+
x: 0,
|
|
22
|
+
y1: t,
|
|
23
|
+
y2: -t,
|
|
24
|
+
stroke: "var(--black, #000)",
|
|
25
|
+
strokeWidth: 1,
|
|
26
|
+
fill: "none"
|
|
27
|
+
}
|
|
28
|
+
),
|
|
29
|
+
/* @__PURE__ */ i(
|
|
30
|
+
"line",
|
|
31
|
+
{
|
|
32
|
+
x1: -3,
|
|
33
|
+
x2: 3,
|
|
34
|
+
y1: t,
|
|
35
|
+
y2: t,
|
|
36
|
+
stroke: "var(--black, #000)",
|
|
37
|
+
strokeWidth: 1,
|
|
38
|
+
fill: "none"
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ i(
|
|
42
|
+
"line",
|
|
43
|
+
{
|
|
44
|
+
x1: -3,
|
|
45
|
+
x2: 3,
|
|
46
|
+
y1: -t,
|
|
47
|
+
y2: -t,
|
|
48
|
+
stroke: "var(--black, #000)",
|
|
49
|
+
strokeWidth: 1,
|
|
50
|
+
fill: "none"
|
|
51
|
+
}
|
|
52
|
+
),
|
|
53
|
+
/* @__PURE__ */ i(
|
|
54
|
+
"circle",
|
|
55
|
+
{
|
|
56
|
+
fill: "var(--turquoise85, #12726D)",
|
|
57
|
+
r: 6,
|
|
58
|
+
cursor: "pointer"
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
n.displayName = "Widgets.LightCurve.Point";
|
|
65
|
+
const u = n;
|
|
66
|
+
export {
|
|
67
|
+
u as default
|
|
68
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),E=require("react"),G=require("react-i18next"),L=require("d3-array"),_=require("../../../charts/hooks/useAxis.cjs"),J=require("../../../charts/XAxis/index.cjs"),K=require("../../../charts/YAxis/index.cjs"),Q=require("../../../charts/Tooltip/index.cjs"),U=require("../../../charts/ClippingContainer/index.cjs"),V=require("../../../charts/Viewport/index.cjs"),l=require("../defaults.cjs"),X=require("../Point/index.cjs"),M=require("./styles.cjs"),S=({data:s,activeAlertId:A,xMin:I,xMax:k,yMin:F=l.default.yMin,yMax:P=l.default.yMax,width:x=l.default.width,height:f=l.default.height,name:R,children:$,className:D})=>{const{t:a,i18n:{language:T}}=G.useTranslation(),[h,b]=E.useState(),C=a("light_curve.plot.x_label"),m="xAxisLabel",H=a("light_curve.plot.y_label"),p="yAxisLabel",i=typeof h<"u"?s[h]:s.find(({id:o})=>o===A),d={top:10,left:40,right:10,bottom:25},u=[0+d.left,x-d.right],[v,O,n]=_.default({min:I||L.min(s,({x:o})=>o)||l.default.xMin,max:k||L.max(s,({x:o})=>o)||l.default.xMax,step:l.default.xStep,range:u}),g=n(v[0]),c=[0+d.top,f-d.bottom],[r,W,e]=_.default({min:F,max:P,step:l.default.yStep,range:c}),q=e(r[1]);return t.jsx(M.PlotContainer,{className:D,children:t.jsxs(M.Chart,{width:x,height:f,horizontalLabel:C,horizontalLabelId:m,verticalLabel:H,verticalLabelId:p,title:R,children:[t.jsx("rect",{x:n(0),y:e(r[0]),width:n(15)-n(0),height:q-e(r[0]),fill:"#F5F5F5"}),t.jsx(J.default,{ticks:O,y:q,labelledById:m,xDomain:v,xScale:n}),t.jsx(K.default,{ticks:W,x:g,labelledById:p,yDomain:r,yScale:e}),t.jsx(U.default,{x:g,y:e(r[0]),width:u[1]-u[0],height:c[1]-c[0],children:t.jsx("g",{role:"list","aria-label":a("light_curve.plot.plot_label")||void 0,children:s.map(({x:o,y:j,error:z,id:B},w)=>{const y=Math.round(o),N=y>0?"after":y===0?"peak":"before";return t.jsx(X.default,{x:n(o),y:e(j),error:e(z)-e(0),onMouseOver:()=>b(w),onMouseOut:()=>b(void 0),description:a("light_curve.plot.point_label",{magnitude:j,count:Math.abs(y),context:N})||void 0},B)})})}),t.jsx(V.default,{x:g,y:e(r[0]),outerWidth:u[1]-u[0],outerHeight:c[1]-c[0],innerWidth:x,innerHeight:f,children:$}),t.jsx(Q.default,{x:i?n(i.x):void 0,y:i?e(i.y):void 0,visible:!!i,offset:6,children:a("light_curve.plot.tooltip",{magnitude:i==null?void 0:i.y.toLocaleString(T,{minimumFractionDigits:2,maximumFractionDigits:2})})})]})})};S.displayName="Widgets.LightCurve.ScatterPlot";const Y=S;exports.default=Y;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FunctionComponent, PropsWithChildren } from "react";
|
|
2
|
+
import { Bounds } from '../../../charts/types';
|
|
3
|
+
import { formatMagnitudePoints } from "../helpers";
|
|
4
|
+
export interface ScatterPlotProps extends Partial<Bounds> {
|
|
5
|
+
data: ReturnType<typeof formatMagnitudePoints>;
|
|
6
|
+
name?: string;
|
|
7
|
+
activeAlertId?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ScatterPlot: FunctionComponent<PropsWithChildren<ScatterPlotProps>>;
|
|
11
|
+
export default ScatterPlot;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o, jsxs as V } from "react/jsx-runtime";
|
|
3
|
+
import { useState as X } from "react";
|
|
4
|
+
import { useTranslation as Y } from "react-i18next";
|
|
5
|
+
import { min as q, max as E } from "d3-array";
|
|
6
|
+
import _ from "../../../charts/hooks/useAxis.js";
|
|
7
|
+
import G from "../../../charts/XAxis/index.js";
|
|
8
|
+
import J from "../../../charts/YAxis/index.js";
|
|
9
|
+
import K from "../../../charts/Tooltip/index.js";
|
|
10
|
+
import Q from "../../../charts/ClippingContainer/index.js";
|
|
11
|
+
import U from "../../../charts/Viewport/index.js";
|
|
12
|
+
import r from "../defaults.js";
|
|
13
|
+
import Z from "../Point/index.js";
|
|
14
|
+
import { PlotContainer as $, Chart as tt } from "./styles.js";
|
|
15
|
+
const M = ({
|
|
16
|
+
data: s,
|
|
17
|
+
activeAlertId: S,
|
|
18
|
+
xMin: I,
|
|
19
|
+
xMax: k,
|
|
20
|
+
yMin: C = r.yMin,
|
|
21
|
+
yMax: F = r.yMax,
|
|
22
|
+
width: p = r.width,
|
|
23
|
+
height: d = r.height,
|
|
24
|
+
name: P,
|
|
25
|
+
children: D,
|
|
26
|
+
className: R
|
|
27
|
+
}) => {
|
|
28
|
+
const {
|
|
29
|
+
t: a,
|
|
30
|
+
i18n: { language: T }
|
|
31
|
+
} = Y(), [h, f] = X(), H = a("light_curve.plot.x_label"), y = "xAxisLabel", W = a("light_curve.plot.y_label"), b = "yAxisLabel", i = typeof h < "u" ? s[h] : s.find(({ id: e }) => e === S), x = {
|
|
32
|
+
top: 10,
|
|
33
|
+
left: 40,
|
|
34
|
+
right: 10,
|
|
35
|
+
bottom: 25
|
|
36
|
+
}, m = [0 + x.left, p - x.right], [v, j, n] = _({
|
|
37
|
+
min: I || q(s, ({ x: e }) => e) || r.xMin,
|
|
38
|
+
max: k || E(s, ({ x: e }) => e) || r.xMax,
|
|
39
|
+
step: r.xStep,
|
|
40
|
+
range: m
|
|
41
|
+
}), u = n(v[0]), c = [0 + x.top, d - x.bottom], [l, w, t] = _({
|
|
42
|
+
min: C,
|
|
43
|
+
max: F,
|
|
44
|
+
step: r.yStep,
|
|
45
|
+
range: c
|
|
46
|
+
}), L = t(l[1]);
|
|
47
|
+
return /* @__PURE__ */ o($, { className: R, children: /* @__PURE__ */ V(
|
|
48
|
+
tt,
|
|
49
|
+
{
|
|
50
|
+
width: p,
|
|
51
|
+
height: d,
|
|
52
|
+
horizontalLabel: H,
|
|
53
|
+
horizontalLabelId: y,
|
|
54
|
+
verticalLabel: W,
|
|
55
|
+
verticalLabelId: b,
|
|
56
|
+
title: P,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ o(
|
|
59
|
+
"rect",
|
|
60
|
+
{
|
|
61
|
+
x: n(0),
|
|
62
|
+
y: t(l[0]),
|
|
63
|
+
width: n(15) - n(0),
|
|
64
|
+
height: L - t(l[0]),
|
|
65
|
+
fill: "#F5F5F5"
|
|
66
|
+
}
|
|
67
|
+
),
|
|
68
|
+
/* @__PURE__ */ o(
|
|
69
|
+
G,
|
|
70
|
+
{
|
|
71
|
+
ticks: j,
|
|
72
|
+
y: L,
|
|
73
|
+
labelledById: y,
|
|
74
|
+
xDomain: v,
|
|
75
|
+
xScale: n
|
|
76
|
+
}
|
|
77
|
+
),
|
|
78
|
+
/* @__PURE__ */ o(
|
|
79
|
+
J,
|
|
80
|
+
{
|
|
81
|
+
ticks: w,
|
|
82
|
+
x: u,
|
|
83
|
+
labelledById: b,
|
|
84
|
+
yDomain: l,
|
|
85
|
+
yScale: t
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ o(
|
|
89
|
+
Q,
|
|
90
|
+
{
|
|
91
|
+
x: u,
|
|
92
|
+
y: t(l[0]),
|
|
93
|
+
width: m[1] - m[0],
|
|
94
|
+
height: c[1] - c[0],
|
|
95
|
+
children: /* @__PURE__ */ o(
|
|
96
|
+
"g",
|
|
97
|
+
{
|
|
98
|
+
role: "list",
|
|
99
|
+
"aria-label": a("light_curve.plot.plot_label") || void 0,
|
|
100
|
+
children: s.map(({ x: e, y: A, error: z, id: B }, O) => {
|
|
101
|
+
const g = Math.round(e), N = g > 0 ? "after" : g === 0 ? "peak" : "before";
|
|
102
|
+
return /* @__PURE__ */ o(
|
|
103
|
+
Z,
|
|
104
|
+
{
|
|
105
|
+
x: n(e),
|
|
106
|
+
y: t(A),
|
|
107
|
+
error: t(z) - t(0),
|
|
108
|
+
onMouseOver: () => f(O),
|
|
109
|
+
onMouseOut: () => f(void 0),
|
|
110
|
+
description: a("light_curve.plot.point_label", {
|
|
111
|
+
magnitude: A,
|
|
112
|
+
count: Math.abs(g),
|
|
113
|
+
context: N
|
|
114
|
+
}) || void 0
|
|
115
|
+
},
|
|
116
|
+
B
|
|
117
|
+
);
|
|
118
|
+
})
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
),
|
|
123
|
+
/* @__PURE__ */ o(
|
|
124
|
+
U,
|
|
125
|
+
{
|
|
126
|
+
x: u,
|
|
127
|
+
y: t(l[0]),
|
|
128
|
+
outerWidth: m[1] - m[0],
|
|
129
|
+
outerHeight: c[1] - c[0],
|
|
130
|
+
innerWidth: p,
|
|
131
|
+
innerHeight: d,
|
|
132
|
+
children: D
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ o(
|
|
136
|
+
K,
|
|
137
|
+
{
|
|
138
|
+
x: i ? n(i.x) : void 0,
|
|
139
|
+
y: i ? t(i.y) : void 0,
|
|
140
|
+
visible: !!i,
|
|
141
|
+
offset: 6,
|
|
142
|
+
children: a("light_curve.plot.tooltip", {
|
|
143
|
+
magnitude: i == null ? void 0 : i.y.toLocaleString(T, {
|
|
144
|
+
minimumFractionDigits: 2,
|
|
145
|
+
maximumFractionDigits: 2
|
|
146
|
+
})
|
|
147
|
+
})
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
) });
|
|
153
|
+
};
|
|
154
|
+
M.displayName = "Widgets.LightCurve.ScatterPlot";
|
|
155
|
+
const ut = M;
|
|
156
|
+
export {
|
|
157
|
+
ut as default
|
|
158
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),t=require("@rubin-epo/epo-react-lib/styles"),i=require("../../../charts/Base/index.cjs"),r=e=>e&&e.__esModule?e:{default:e},n=r(o),a=n.default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
aspect-ratio: 1;
|
|
4
|
+
color: var(--neutral95, #1f2121);
|
|
5
|
+
container-type: inline-size;
|
|
6
|
+
background-color: var(--white, #fff);
|
|
7
|
+
border: 1px solid var(--turquoise55, #009fa1);
|
|
8
|
+
gap: var(--light-curve-padding);
|
|
9
|
+
`,l=n.default(i.default)`
|
|
10
|
+
font-size: 2.25em;
|
|
11
|
+
overflow: visible;
|
|
12
|
+
|
|
13
|
+
@container (
|
|
14
|
+
min-width: ${t.token("BREAK_MOBILE")}
|
|
15
|
+
) {
|
|
16
|
+
font-size: 1.5em;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@container (
|
|
20
|
+
min-width: ${t.token("BREAK_PHABLET_MIN")}
|
|
21
|
+
) {
|
|
22
|
+
font-size: 1.25em;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@container (
|
|
26
|
+
min-width: ${t.token("BREAK_LARGE_TABLET_MIN")}
|
|
27
|
+
) {
|
|
28
|
+
font-size: 1em;
|
|
29
|
+
}
|
|
30
|
+
`;exports.Chart=l;exports.PlotContainer=a;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PlotContainer: import("styled-components").IStyledComponent<"web", {
|
|
3
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
4
|
+
key?: import("react").Key | null | undefined;
|
|
5
|
+
defaultChecked?: boolean | undefined;
|
|
6
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
7
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
8
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
9
|
+
accessKey?: string | undefined;
|
|
10
|
+
autoFocus?: boolean | undefined;
|
|
11
|
+
className?: string | undefined;
|
|
12
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
13
|
+
contextMenu?: string | undefined;
|
|
14
|
+
dir?: string | undefined;
|
|
15
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
16
|
+
hidden?: boolean | undefined;
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
lang?: string | undefined;
|
|
19
|
+
nonce?: string | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
slot?: string | undefined;
|
|
22
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
23
|
+
style?: import("react").CSSProperties | undefined;
|
|
24
|
+
tabIndex?: number | undefined;
|
|
25
|
+
title?: string | undefined;
|
|
26
|
+
translate?: "yes" | "no" | undefined;
|
|
27
|
+
radioGroup?: string | undefined;
|
|
28
|
+
role?: import("react").AriaRole | undefined;
|
|
29
|
+
about?: string | undefined;
|
|
30
|
+
content?: string | undefined;
|
|
31
|
+
datatype?: string | undefined;
|
|
32
|
+
inlist?: any;
|
|
33
|
+
prefix?: string | undefined;
|
|
34
|
+
property?: string | undefined;
|
|
35
|
+
rel?: string | undefined;
|
|
36
|
+
resource?: string | undefined;
|
|
37
|
+
rev?: string | undefined;
|
|
38
|
+
typeof?: string | undefined;
|
|
39
|
+
vocab?: string | undefined;
|
|
40
|
+
autoCapitalize?: string | undefined;
|
|
41
|
+
autoCorrect?: string | undefined;
|
|
42
|
+
autoSave?: string | undefined;
|
|
43
|
+
color?: string | undefined;
|
|
44
|
+
itemProp?: string | undefined;
|
|
45
|
+
itemScope?: boolean | undefined;
|
|
46
|
+
itemType?: string | undefined;
|
|
47
|
+
itemID?: string | undefined;
|
|
48
|
+
itemRef?: string | undefined;
|
|
49
|
+
results?: number | undefined;
|
|
50
|
+
security?: string | undefined;
|
|
51
|
+
unselectable?: "on" | "off" | undefined;
|
|
52
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
53
|
+
is?: string | undefined;
|
|
54
|
+
children?: import("react").ReactNode;
|
|
55
|
+
"aria-activedescendant"?: string | undefined;
|
|
56
|
+
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
57
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
58
|
+
"aria-braillelabel"?: string | undefined;
|
|
59
|
+
"aria-brailleroledescription"?: string | undefined;
|
|
60
|
+
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
61
|
+
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
62
|
+
"aria-colcount"?: number | undefined;
|
|
63
|
+
"aria-colindex"?: number | undefined;
|
|
64
|
+
"aria-colindextext"?: string | undefined;
|
|
65
|
+
"aria-colspan"?: number | undefined;
|
|
66
|
+
"aria-controls"?: string | undefined;
|
|
67
|
+
"aria-current"?: boolean | "step" | "time" | "true" | "false" | "page" | "location" | "date" | undefined;
|
|
68
|
+
"aria-describedby"?: string | undefined;
|
|
69
|
+
"aria-description"?: string | undefined;
|
|
70
|
+
"aria-details"?: string | undefined;
|
|
71
|
+
"aria-disabled"?: (boolean | "true" | "false") | undefined;
|
|
72
|
+
"aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
73
|
+
"aria-errormessage"?: string | undefined;
|
|
74
|
+
"aria-expanded"?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
"aria-flowto"?: string | undefined;
|
|
76
|
+
"aria-grabbed"?: (boolean | "true" | "false") | undefined;
|
|
77
|
+
"aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
78
|
+
"aria-hidden"?: (boolean | "true" | "false") | undefined;
|
|
79
|
+
"aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
80
|
+
"aria-keyshortcuts"?: string | undefined;
|
|
81
|
+
"aria-label"?: string | undefined;
|
|
82
|
+
"aria-labelledby"?: string | undefined;
|
|
83
|
+
"aria-level"?: number | undefined;
|
|
84
|
+
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
85
|
+
"aria-modal"?: (boolean | "true" | "false") | undefined;
|
|
86
|
+
"aria-multiline"?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
"aria-multiselectable"?: (boolean | "true" | "false") | undefined;
|
|
88
|
+
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
89
|
+
"aria-owns"?: string | undefined;
|
|
90
|
+
"aria-placeholder"?: string | undefined;
|
|
91
|
+
"aria-posinset"?: number | undefined;
|
|
92
|
+
"aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
93
|
+
"aria-readonly"?: (boolean | "true" | "false") | undefined;
|
|
94
|
+
"aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
95
|
+
"aria-required"?: (boolean | "true" | "false") | undefined;
|
|
96
|
+
"aria-roledescription"?: string | undefined;
|
|
97
|
+
"aria-rowcount"?: number | undefined;
|
|
98
|
+
"aria-rowindex"?: number | undefined;
|
|
99
|
+
"aria-rowindextext"?: string | undefined;
|
|
100
|
+
"aria-rowspan"?: number | undefined;
|
|
101
|
+
"aria-selected"?: (boolean | "true" | "false") | undefined;
|
|
102
|
+
"aria-setsize"?: number | undefined;
|
|
103
|
+
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
104
|
+
"aria-valuemax"?: number | undefined;
|
|
105
|
+
"aria-valuemin"?: number | undefined;
|
|
106
|
+
"aria-valuenow"?: number | undefined;
|
|
107
|
+
"aria-valuetext"?: string | undefined;
|
|
108
|
+
dangerouslySetInnerHTML?: {
|
|
109
|
+
__html: string | TrustedHTML;
|
|
110
|
+
} | undefined;
|
|
111
|
+
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
112
|
+
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
113
|
+
onCut?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
114
|
+
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
115
|
+
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
116
|
+
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
|
|
117
|
+
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
118
|
+
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
119
|
+
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
120
|
+
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
121
|
+
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
122
|
+
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement> | undefined;
|
|
123
|
+
onFocus?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
124
|
+
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
125
|
+
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
126
|
+
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
127
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
128
|
+
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
129
|
+
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
130
|
+
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
131
|
+
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
132
|
+
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
|
+
onReset?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
134
|
+
onResetCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
135
|
+
onSubmit?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
136
|
+
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
137
|
+
onInvalid?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
138
|
+
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
139
|
+
onLoad?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
140
|
+
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
141
|
+
onError?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
142
|
+
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
143
|
+
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
144
|
+
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
145
|
+
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
146
|
+
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
147
|
+
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
148
|
+
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement> | undefined;
|
|
149
|
+
onAbort?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
150
|
+
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
151
|
+
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
152
|
+
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
153
|
+
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
154
|
+
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
155
|
+
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
156
|
+
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
157
|
+
onEmptied?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
158
|
+
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
159
|
+
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
160
|
+
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
161
|
+
onEnded?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
162
|
+
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
163
|
+
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
164
|
+
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
165
|
+
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
166
|
+
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
167
|
+
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
168
|
+
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
169
|
+
onPause?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
170
|
+
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
171
|
+
onPlay?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
172
|
+
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
173
|
+
onPlaying?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
174
|
+
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
175
|
+
onProgress?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
176
|
+
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
177
|
+
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
|
+
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
|
+
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
+
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
+
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
|
+
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
|
+
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
+
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
+
onStalled?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
|
+
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
|
+
onSuspend?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
|
+
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
189
|
+
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
190
|
+
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
191
|
+
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
192
|
+
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
193
|
+
onWaiting?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
194
|
+
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
195
|
+
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
196
|
+
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
197
|
+
onClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
198
|
+
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
199
|
+
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
200
|
+
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
201
|
+
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
202
|
+
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
203
|
+
onDrag?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
204
|
+
onDragCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
205
|
+
onDragEnd?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
206
|
+
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
207
|
+
onDragEnter?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
208
|
+
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
209
|
+
onDragExit?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
210
|
+
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
211
|
+
onDragLeave?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
212
|
+
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
213
|
+
onDragOver?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
214
|
+
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
215
|
+
onDragStart?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
216
|
+
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
217
|
+
onDrop?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
218
|
+
onDropCapture?: import("react").DragEventHandler<HTMLDivElement> | undefined;
|
|
219
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
220
|
+
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
221
|
+
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
222
|
+
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
223
|
+
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
224
|
+
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
225
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
226
|
+
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
227
|
+
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
228
|
+
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
229
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
230
|
+
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement> | undefined;
|
|
231
|
+
onSelect?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
232
|
+
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
233
|
+
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
234
|
+
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
235
|
+
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
236
|
+
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
237
|
+
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
238
|
+
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
239
|
+
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
240
|
+
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement> | undefined;
|
|
241
|
+
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
242
|
+
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
243
|
+
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
244
|
+
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
245
|
+
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
246
|
+
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
247
|
+
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
248
|
+
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
249
|
+
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
250
|
+
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
251
|
+
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
252
|
+
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
253
|
+
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
254
|
+
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
255
|
+
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
256
|
+
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
257
|
+
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
258
|
+
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
259
|
+
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
260
|
+
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
|
|
261
|
+
onScroll?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
262
|
+
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement> | undefined;
|
|
263
|
+
onWheel?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
264
|
+
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement> | undefined;
|
|
265
|
+
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
266
|
+
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
267
|
+
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
268
|
+
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
269
|
+
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
270
|
+
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
271
|
+
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
272
|
+
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
export declare const Chart: import("styled-components").IStyledComponent<"web", {
|
|
275
|
+
className?: string | undefined;
|
|
276
|
+
title?: string | undefined;
|
|
277
|
+
verticalLabel?: string | undefined;
|
|
278
|
+
verticalLabelId?: string | undefined;
|
|
279
|
+
horizontalLabel?: string | undefined;
|
|
280
|
+
horizontalLabelId?: string | undefined;
|
|
281
|
+
xMin?: number | undefined;
|
|
282
|
+
xMax?: number | undefined;
|
|
283
|
+
width?: number | undefined;
|
|
284
|
+
yMin?: number | undefined;
|
|
285
|
+
yMax?: number | undefined;
|
|
286
|
+
height?: number | undefined;
|
|
287
|
+
children?: import("react").ReactNode;
|
|
288
|
+
}> & import("react").FunctionComponent<import("react").PropsWithChildren<import("../../../charts/Base/index").BaseChartProps>>;
|