@rubin-epo/epo-widget-lib 0.9.2 → 0.9.4
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/Base/index.cjs +1 -1
- package/dist/charts/Base/index.js +30 -35
- package/dist/charts/Base/styles.cjs +40 -22
- package/dist/charts/Base/styles.d.ts +2035 -675
- package/dist/charts/Base/styles.js +49 -25
- package/dist/charts/ForeignObject/index.cjs +1 -1
- package/dist/charts/ForeignObject/index.d.ts +2 -0
- package/dist/charts/ForeignObject/index.js +7 -7
- package/dist/charts/Tooltip/index.cjs +1 -1
- package/dist/charts/Tooltip/index.js +17 -12
- package/dist/charts/Tooltip/styles.cjs +1 -1
- package/dist/charts/Tooltip/styles.d.ts +4 -0
- package/dist/charts/Tooltip/styles.js +1 -1
- package/dist/lib/utils.cjs +1 -1
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +21 -17
- package/dist/widgets/LightCurvePlot/DM15Display/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/DM15Display/index.js +6 -6
- package/dist/widgets/LightCurvePlot/DM15Display/styles.cjs +8 -6
- package/dist/widgets/LightCurvePlot/DM15Display/styles.d.ts +272 -0
- package/dist/widgets/LightCurvePlot/DM15Display/styles.js +10 -7
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.d.ts +2 -0
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/index.js +19 -18
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.cjs +7 -8
- package/dist/widgets/LightCurvePlot/MagnitudeSlider/styles.js +8 -9
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.js +29 -27
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.cjs +4 -3
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.js +2 -1
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.cjs +1 -1
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.d.ts +2 -1
- package/dist/widgets/LightCurvePlot/ScatterPlot/index.js +161 -145
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.cjs +25 -11
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.d.ts +544 -0
- package/dist/widgets/LightCurvePlot/ScatterPlot/styles.js +25 -9
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),r=require("./styles.cjs"),c=({width:s=900,height:i=300,xMin:o=0,yMin:x=0,verticalLabel:a,verticalLabelId:t,horizontalLabel:n,horizontalLabelId:l,title:d,children:j,className:p})=>e.jsxs(r.ChartContainer,{children:[d&&e.jsx(r.TitleWrapper,{children:e.jsx(r.Title,{children:d})}),a&&e.jsxs(e.Fragment,{children:[e.jsx(r.VerticalLabelWrapper,{children:e.jsx(r.Label,{id:t,"aria-hidden":!!t,children:a})}),e.jsx(r.Filler,{})]}),e.jsx(r.SVG,{preserveAspectRatio:"xMidYMid meet",viewBox:`${o} ${x} ${s} ${i}`,className:p,style:{"--aspect-ratio":`${s} / ${i}`},role:"group",children:j}),n&&e.jsx(r.HorizontalLabelWrapper,{children:e.jsx(r.Label,{id:l,"aria-hidden":!!l,children:n})})]});c.displayName="Charts.Base";const u=c;exports.default=u;
|
|
@@ -1,52 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { ChartContainer as
|
|
3
|
-
const
|
|
4
|
-
width:
|
|
1
|
+
import { jsxs as t, jsx as r, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { ChartContainer as B, TitleWrapper as C, Title as f, VerticalLabelWrapper as u, Label as l, Filler as W, SVG as j, HorizontalLabelWrapper as y } from "./styles.js";
|
|
3
|
+
const c = ({
|
|
4
|
+
width: e = 900,
|
|
5
5
|
height: i = 300,
|
|
6
|
-
xMin:
|
|
7
|
-
yMin:
|
|
8
|
-
verticalLabel:
|
|
9
|
-
verticalLabelId:
|
|
10
|
-
horizontalLabel:
|
|
11
|
-
horizontalLabelId:
|
|
12
|
-
title:
|
|
6
|
+
xMin: o = 0,
|
|
7
|
+
yMin: h = 0,
|
|
8
|
+
verticalLabel: a,
|
|
9
|
+
verticalLabelId: d,
|
|
10
|
+
horizontalLabel: n,
|
|
11
|
+
horizontalLabelId: s,
|
|
12
|
+
title: p,
|
|
13
13
|
children: m,
|
|
14
14
|
className: $
|
|
15
|
-
}) => /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
),
|
|
25
|
-
/* @__PURE__ */ e(
|
|
26
|
-
C,
|
|
15
|
+
}) => /* @__PURE__ */ t(B, { children: [
|
|
16
|
+
p && /* @__PURE__ */ r(C, { children: /* @__PURE__ */ r(f, { children: p }) }),
|
|
17
|
+
a && /* @__PURE__ */ t(x, { children: [
|
|
18
|
+
/* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(l, { id: d, "aria-hidden": !!d, children: a }) }),
|
|
19
|
+
/* @__PURE__ */ r(W, {})
|
|
20
|
+
] }),
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
j,
|
|
27
23
|
{
|
|
28
24
|
preserveAspectRatio: "xMidYMid meet",
|
|
29
|
-
viewBox: `${
|
|
25
|
+
viewBox: `${o} ${h} ${e} ${i}`,
|
|
30
26
|
className: $,
|
|
31
27
|
style: {
|
|
32
|
-
"--aspect-ratio": `${
|
|
33
|
-
"--min-width": `${r}px`
|
|
28
|
+
"--aspect-ratio": `${e} / ${i}`
|
|
34
29
|
},
|
|
35
30
|
role: "group",
|
|
36
31
|
children: m
|
|
37
32
|
}
|
|
38
33
|
),
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
n && /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(
|
|
35
|
+
l,
|
|
41
36
|
{
|
|
42
|
-
id:
|
|
43
|
-
"aria-hidden": !!
|
|
44
|
-
children:
|
|
37
|
+
id: s,
|
|
38
|
+
"aria-hidden": !!s,
|
|
39
|
+
children: n
|
|
45
40
|
}
|
|
46
|
-
)
|
|
41
|
+
) })
|
|
47
42
|
] });
|
|
48
|
-
|
|
49
|
-
const
|
|
43
|
+
c.displayName = "Charts.Base";
|
|
44
|
+
const T = c;
|
|
50
45
|
export {
|
|
51
|
-
|
|
46
|
+
T as default
|
|
52
47
|
};
|
|
@@ -1,36 +1,54 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
--label-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("styled-components"),a=t=>t&&t.__esModule?t:{default:t},e=a(l),i=e.default.div`
|
|
2
|
+
--label-height: 3em;
|
|
3
|
+
--label-gutter: calc(var(--label-height) / 2);
|
|
3
4
|
|
|
4
5
|
display: grid;
|
|
5
|
-
grid-template-columns:
|
|
6
|
-
grid-template-rows:
|
|
6
|
+
grid-template-columns: min-content 1fr min-content;
|
|
7
|
+
grid-template-rows: min-content 1fr min-content;
|
|
7
8
|
grid-template-areas:
|
|
8
|
-
"title title"
|
|
9
|
-
"vertical-label chart"
|
|
10
|
-
". horizontal-label";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
"title title title"
|
|
10
|
+
"vertical-label chart filler"
|
|
11
|
+
". horizontal-label filler";
|
|
12
|
+
/* for Safari */
|
|
13
|
+
align-items: center;
|
|
14
|
+
width: 100%;
|
|
15
|
+
`;e.default.div`
|
|
15
16
|
place-self: center;
|
|
16
17
|
align-self: center;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
`;e.default.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
20
21
|
place-self: center;
|
|
21
22
|
align-self: center;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
`;const r=e.default.div`
|
|
24
|
+
grid-area: filler;
|
|
25
|
+
width: var(--label-height);
|
|
26
|
+
`,n=e.default.svg`
|
|
25
27
|
grid-area: chart;
|
|
26
|
-
height: 100%;
|
|
27
28
|
max-width: 100%;
|
|
29
|
+
max-height: 100%;
|
|
28
30
|
aspect-ratio: var(--aspect-ratio);
|
|
29
|
-
`,
|
|
31
|
+
`,d=e.default.div`
|
|
30
32
|
display: flex;
|
|
31
33
|
align-items: center;
|
|
32
34
|
grid-area: title;
|
|
33
|
-
height: var(--label-
|
|
34
|
-
padding-inline:
|
|
35
|
+
height: var(--label-height);
|
|
36
|
+
padding-inline: var(--label-gutter);
|
|
37
|
+
`,c=e.default.h3`
|
|
35
38
|
margin: 0;
|
|
36
|
-
|
|
39
|
+
`,o=e.default.div`
|
|
40
|
+
width: var(--label-height);
|
|
41
|
+
writing-mode: vertical-rl;
|
|
42
|
+
transform: rotate(180deg);
|
|
43
|
+
grid-area: vertical-label;
|
|
44
|
+
`,s=e.default.div`
|
|
45
|
+
height: var(--label-height);
|
|
46
|
+
grid-area: horizontal-label;
|
|
47
|
+
`,g=e.default.span`
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
height: 100%;
|
|
52
|
+
width: 100%;
|
|
53
|
+
font-size: 80%;
|
|
54
|
+
`;exports.ChartContainer=i;exports.Filler=r;exports.HorizontalLabelWrapper=s;exports.Label=g;exports.SVG=n;exports.Title=c;exports.TitleWrapper=d;exports.VerticalLabelWrapper=o;
|