@rubin-epo/epo-widget-lib 1.1.0 → 1.1.2
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/README.MD +1 -1
- package/dist/ViewIndicator.cjs +1 -1
- package/dist/ViewIndicator.js +50 -44
- package/dist/atomic/Blinker/Controls/styles.d.ts +1 -273
- package/dist/atomic/Blinker/styles.d.ts +2 -545
- package/dist/atomic/ElapsedTime/styles.d.ts +6 -1634
- package/dist/atomic/ImageStack/index.d.ts +2 -2
- package/dist/atomic/LiveRegion/styles.d.ts +1 -273
- package/dist/atomic/Loader/styles.d.ts +1 -273
- package/dist/atomic/PlaybackControl/styles.d.ts +2 -555
- package/dist/atomic/PlotWrapper/styles.d.ts +1 -273
- package/dist/charts/Base/styles.d.ts +10 -2931
- package/dist/charts/Readout/index.cjs +1 -1
- package/dist/charts/Readout/index.js +18 -25
- package/dist/charts/Readout/styles.d.ts +2 -548
- package/dist/charts/ScatterPlot/index.cjs +1 -1
- package/dist/charts/ScatterPlot/index.js +50 -53
- package/dist/charts/ScatterPlot/styles.d.ts +2 -14
- package/dist/charts/Tooltip/styles.d.ts +6 -548
- package/dist/charts/styles.d.ts +6 -2893
- package/dist/layout/AspectRatio/styles.d.ts +1 -273
- package/dist/layout/Controls/styles.d.ts +12 -1918
- package/dist/styles/svg.d.ts +1 -273
- package/dist/widgets/CameraFilter/styles.d.ts +18 -5224
- package/dist/widgets/ColorTool/FilterControls/styles.d.ts +7 -1257
- package/dist/widgets/FilterTool/styles.d.ts +11 -3444
- package/dist/widgets/LightCurvePlot/Plot/styles.d.ts +3 -817
- package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/styles.d.ts +1 -276
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.d.ts +2 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/styles.d.ts +6 -0
- package/dist/widgets/LightCurvePlot/PlotWithCurve/index.d.ts +1 -1
- package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +6 -820
- package/dist/widgets/SourceSelector/Message/styles.d.ts +2 -2
- package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +3 -817
- package/dist/widgets/SourceSelector/SourceMap/styles.d.ts +2 -965
- package/dist/widgets/SourceSelector/styles.d.ts +2 -17
- package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -483
- package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
- package/dist/widgets/SupernovaThreeVector/Skymap/index.js +39 -45
- package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -3375
- package/dist/widgets/ViewIndicator/styles.cjs +9 -24
- package/dist/widgets/ViewIndicator/styles.d.ts +4 -4401
- package/dist/widgets/ViewIndicator/styles.js +10 -32
- package/package.json +22 -22
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as h, jsx as
|
|
2
|
+
import { jsxs as h, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useState as L } from "react";
|
|
4
4
|
import { geoAitoff as E } from "d3-geo-projection";
|
|
5
5
|
import { geoGraticule as N, geoPath as R } from "d3-geo";
|
|
6
6
|
import { range as M } from "d3-array";
|
|
7
|
-
import U from "../../../
|
|
8
|
-
import "
|
|
9
|
-
import "../../../charts/
|
|
10
|
-
import "../../../charts/
|
|
11
|
-
import V from "../../../charts/Tooltip/index.js";
|
|
12
|
-
import "../../../charts/Bars/index.js";
|
|
13
|
-
import "../../../charts/Viewport/index.js";
|
|
14
|
-
import "../../../charts/ScatterPlot/index.js";
|
|
15
|
-
import q from "../../../atomic/ImageStack/index.js";
|
|
16
|
-
import { Background as z, Graticule as D, ImageStackerWrapper as F, UserObject as J, LatLabel as K, LongLabel as Q, Outline as X } from "./styles.js";
|
|
7
|
+
import U from "../../../atomic/ImageStack/index.js";
|
|
8
|
+
import { Background as V, Graticule as q, ImageStackerWrapper as z, UserObject as D, LatLabel as F, LongLabel as J, Outline as K } from "./styles.js";
|
|
9
|
+
import Q from "../../../charts/Base/index.js";
|
|
10
|
+
import X from "../../../charts/Tooltip/index.js";
|
|
17
11
|
const Y = ({
|
|
18
12
|
className: y,
|
|
19
13
|
objects: g = [],
|
|
@@ -21,38 +15,38 @@ const Y = ({
|
|
|
21
15
|
visibleImages: w = [],
|
|
22
16
|
describedById: B
|
|
23
17
|
}) => {
|
|
24
|
-
const [O, W] = L(!1), [f, u] = L(), s = 600, l = 300,
|
|
18
|
+
const [O, W] = L(!1), [f, u] = L(), s = 600, l = 300, a = {
|
|
25
19
|
top: 20,
|
|
26
20
|
right: 0,
|
|
27
21
|
bottom: 20,
|
|
28
22
|
left: 20
|
|
29
|
-
}, j = s +
|
|
30
|
-
|
|
23
|
+
}, j = s + a.right + a.left, C = l + a.top + a.bottom, c = 15, d = 30, k = -90, x = 90, p = -180, b = 180, m = 2, i = E(), n = N();
|
|
24
|
+
n.step([d, c]), n.extent([
|
|
31
25
|
[p, k],
|
|
32
26
|
[b, x]
|
|
33
|
-
]),
|
|
27
|
+
]), i.fitExtent(
|
|
34
28
|
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
29
|
+
[a.left, a.top],
|
|
30
|
+
[a.left + s - m, a.top + l]
|
|
37
31
|
],
|
|
38
|
-
|
|
32
|
+
n.outline()
|
|
39
33
|
);
|
|
40
|
-
const G = M(k + c, x, c), H = M(p + d, b, d), P = R(
|
|
41
|
-
return /* @__PURE__ */ h(
|
|
42
|
-
/* @__PURE__ */
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
34
|
+
const G = M(k + c, x, c), H = M(p + d, b, d), P = R(i).pointRadius(6), r = (t) => P(t) || void 0, o = typeof f < "u" ? g[f] : void 0, S = (o ? i([o == null ? void 0 : o.long, o == null ? void 0 : o.lat]) : [0, 0]) || [0, 0];
|
|
35
|
+
return /* @__PURE__ */ h(Q, { width: j, height: C, className: y, children: [
|
|
36
|
+
/* @__PURE__ */ e("mask", { id: "imageMask", children: /* @__PURE__ */ e("path", { d: r(n.outline()), fill: "white" }) }),
|
|
37
|
+
/* @__PURE__ */ e(V, { d: r(n.outline()) }),
|
|
38
|
+
/* @__PURE__ */ e(q, { d: r(n()) }),
|
|
39
|
+
/* @__PURE__ */ e(
|
|
40
|
+
z,
|
|
47
41
|
{
|
|
48
42
|
style: { "--image-stack-opacity": O && 1 },
|
|
49
|
-
x:
|
|
50
|
-
y:
|
|
43
|
+
x: a.left,
|
|
44
|
+
y: a.top,
|
|
51
45
|
width: s - m,
|
|
52
46
|
height: l,
|
|
53
47
|
mask: "url(#imageMask)",
|
|
54
|
-
children: /* @__PURE__ */
|
|
55
|
-
|
|
48
|
+
children: /* @__PURE__ */ e(
|
|
49
|
+
U,
|
|
56
50
|
{
|
|
57
51
|
images: v,
|
|
58
52
|
describedById: B,
|
|
@@ -64,10 +58,10 @@ const Y = ({
|
|
|
64
58
|
)
|
|
65
59
|
}
|
|
66
60
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
61
|
+
/* @__PURE__ */ e("g", { children: g.map(({ id: t, lat: T, long: $ }, A) => /* @__PURE__ */ e(
|
|
62
|
+
D,
|
|
69
63
|
{
|
|
70
|
-
d:
|
|
64
|
+
d: r({
|
|
71
65
|
type: "Point",
|
|
72
66
|
coordinates: [$, T]
|
|
73
67
|
}),
|
|
@@ -76,14 +70,14 @@ const Y = ({
|
|
|
76
70
|
},
|
|
77
71
|
t
|
|
78
72
|
)) }),
|
|
79
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ e("g", { "aria-hidden": "true", children: G.map(
|
|
80
74
|
(t) => t === 0 ? null : /* @__PURE__ */ h(
|
|
81
|
-
|
|
75
|
+
F,
|
|
82
76
|
{
|
|
83
77
|
style: {
|
|
84
78
|
dominantBaseline: t > 0 ? "text-after-edge" : "text-before-edge"
|
|
85
79
|
},
|
|
86
|
-
transform: `translate(${
|
|
80
|
+
transform: `translate(${i([p, t])})`,
|
|
87
81
|
children: [
|
|
88
82
|
t,
|
|
89
83
|
"°"
|
|
@@ -92,10 +86,10 @@ const Y = ({
|
|
|
92
86
|
t
|
|
93
87
|
)
|
|
94
88
|
) }),
|
|
95
|
-
/* @__PURE__ */
|
|
96
|
-
|
|
89
|
+
/* @__PURE__ */ e("g", { "aria-hidden": "true", children: H.map((t) => /* @__PURE__ */ h(
|
|
90
|
+
J,
|
|
97
91
|
{
|
|
98
|
-
transform: `translate(${
|
|
92
|
+
transform: `translate(${i([t, 0])})`,
|
|
99
93
|
children: [
|
|
100
94
|
t,
|
|
101
95
|
"°"
|
|
@@ -103,20 +97,20 @@ const Y = ({
|
|
|
103
97
|
},
|
|
104
98
|
t
|
|
105
99
|
)) }),
|
|
106
|
-
/* @__PURE__ */
|
|
107
|
-
|
|
100
|
+
/* @__PURE__ */ e(
|
|
101
|
+
K,
|
|
108
102
|
{
|
|
109
103
|
strokeWidth: m,
|
|
110
|
-
d: n
|
|
104
|
+
d: r(n.outline())
|
|
111
105
|
}
|
|
112
106
|
),
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
X,
|
|
115
109
|
{
|
|
116
|
-
visible: !!
|
|
110
|
+
visible: !!o,
|
|
117
111
|
x: S[0],
|
|
118
112
|
y: S[1],
|
|
119
|
-
children:
|
|
113
|
+
children: o == null ? void 0 : o.id
|
|
120
114
|
}
|
|
121
115
|
)
|
|
122
116
|
] });
|