@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,36 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import { useTranslation as
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { useTranslation as g } from "react-i18next";
|
|
4
4
|
import r from "lodash/round";
|
|
5
5
|
import f from "../../../atomic/LiveRegion/index.js";
|
|
6
|
-
const
|
|
7
|
-
id:
|
|
8
|
-
supernovaCount:
|
|
6
|
+
const v = ({
|
|
7
|
+
id: n,
|
|
8
|
+
supernovaCount: i,
|
|
9
9
|
objects: t,
|
|
10
|
-
min:
|
|
10
|
+
min: a,
|
|
11
11
|
max: m
|
|
12
12
|
}) => {
|
|
13
13
|
const {
|
|
14
|
-
t:
|
|
14
|
+
t: s,
|
|
15
15
|
i18n: { language: e }
|
|
16
|
-
} =
|
|
16
|
+
} = g(), c = new Intl.ListFormat(e, {
|
|
17
17
|
style: "long",
|
|
18
18
|
type: "conjunction"
|
|
19
19
|
}), { format: o } = new Intl.NumberFormat(e, {
|
|
20
20
|
maximumFractionDigits: 0
|
|
21
|
-
}),
|
|
22
|
-
({ lat:
|
|
21
|
+
}), l = t.map(
|
|
22
|
+
({ lat: u, long: p }) => `${o(r(u, -1))}° ${o(r(p, -1))}°`
|
|
23
23
|
);
|
|
24
|
-
return /* @__PURE__ */
|
|
25
|
-
supernovaCount:
|
|
24
|
+
return /* @__PURE__ */ d(f, { id: n, children: s("supernova_three_vector.skymap.description", {
|
|
25
|
+
supernovaCount: i,
|
|
26
26
|
userObjectCount: t.length,
|
|
27
|
-
coords:
|
|
28
|
-
min:
|
|
27
|
+
coords: c.format(l),
|
|
28
|
+
min: a,
|
|
29
29
|
max: m
|
|
30
30
|
}) });
|
|
31
31
|
};
|
|
32
|
-
|
|
33
|
-
const y = n;
|
|
32
|
+
v.displayName = "Widgets.SupernovaThreVector.LiveLabel";
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
v as default
|
|
36
35
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use client";"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),b=require("react"),_=require("d3-geo-projection"),S=require("d3-geo"),M=require("d3-array"),E=require("../../../charts/Base/index.cjs");require("../../../charts/XAxis/index.cjs");require("../../../charts/YAxis/index.cjs");require("../../../charts/Guidelines/index.cjs");const N=require("../../../charts/Tooltip/index.cjs");require("../../../charts/Bars/index.cjs");require("../../../charts/Viewport/index.cjs");require("../../../charts/ScatterPlot/index.cjs");const U=require("../../../atomic/ImageStack/index.cjs"),r=require("./styles.cjs"),y=({className:L,objects:p=[],images:v=[],visibleImages:w=[],describedById:G})=>{const[O,P]=b.useState(!1),[x,f]=b.useState(),l=600,c=300,n={top:20,right:0,bottom:20,left:20},W=l+n.right+n.left,$=c+n.top+n.bottom,d=15,u=30,j=-90,m=90,g=-180,q=180,h=2,i=_.geoAitoff(),s=S.geoGraticule();s.step([u,d]),s.extent([[g,j],[q,m]]),i.fitExtent([[n.left,n.top],[n.left+l-h,n.top+c]],s.outline());const B=M.range(j+d,m,d),A=M.range(g+u,q,u),C=S.geoPath(i).pointRadius(6),a=t=>C(t)||void 0,o=typeof x<"u"?p[x]:void 0,k=(o?i([o==null?void 0:o.long,o==null?void 0:o.lat]):[0,0])||[0,0];return e.jsxs(E.default,{width:W,height:$,className:L,children:[e.jsx("mask",{id:"imageMask",children:e.jsx("path",{d:a(s.outline()),fill:"white"})}),e.jsx(r.Background,{d:a(s.outline())}),e.jsx(r.Graticule,{d:a(s())}),e.jsx(r.ImageStackerWrapper,{style:{"--image-stack-opacity":O&&1},x:n.left,y:n.top,width:l-h,height:c,mask:"url(#imageMask)",children:e.jsx(U.default,{images:v,describedById:G,visible:w,loadCallback:()=>P(!0),showBackdrop:!1,showLoader:!1})}),e.jsx("g",{children:p.map(({id:t,lat:H,long:R},T)=>e.jsx(r.UserObject,{d:a({type:"Point",coordinates:[R,H]}),onMouseOver:()=>f(T),onMouseOut:()=>f(void 0)},t))}),e.jsx("g",{"aria-hidden":"true",children:B.map(t=>t===0?null:e.jsxs(r.LatLabel,{style:{dominantBaseline:t>0?"text-after-edge":"text-before-edge"},transform:`translate(${i([g,t])})`,children:[t,"°"]},t))}),e.jsx("g",{"aria-hidden":"true",children:A.map(t=>e.jsxs(r.LongLabel,{transform:`translate(${i([t,0])})`,children:[t,"°"]},t))}),e.jsx(r.Outline,{strokeWidth:h,d:a(s.outline())}),e.jsx(N.default,{visible:!!o,x:k[0],y:k[1],children:o==null?void 0:o.id})]})};y.displayName="Widgets.SupernovaThreeVector.Skymap";exports.default=y;
|
|
@@ -1,83 +1,89 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as h, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { useState as L } from "react";
|
|
4
|
-
import { geoAitoff as
|
|
5
|
-
import { geoGraticule as
|
|
4
|
+
import { geoAitoff as E } from "d3-geo-projection";
|
|
5
|
+
import { geoGraticule as N, geoPath as R } from "d3-geo";
|
|
6
6
|
import { range as M } from "d3-array";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
import U from "../../../charts/Base/index.js";
|
|
8
|
+
import "../../../charts/XAxis/index.js";
|
|
9
|
+
import "../../../charts/YAxis/index.js";
|
|
10
|
+
import "../../../charts/Guidelines/index.js";
|
|
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";
|
|
17
|
+
const Y = ({
|
|
18
|
+
className: y,
|
|
19
|
+
objects: g = [],
|
|
20
|
+
images: v = [],
|
|
21
|
+
visibleImages: w = [],
|
|
22
|
+
describedById: B
|
|
17
23
|
}) => {
|
|
18
|
-
const [
|
|
24
|
+
const [O, W] = L(!1), [f, u] = L(), s = 600, l = 300, i = {
|
|
19
25
|
top: 20,
|
|
20
26
|
right: 0,
|
|
21
27
|
bottom: 20,
|
|
22
28
|
left: 20
|
|
23
|
-
},
|
|
24
|
-
|
|
29
|
+
}, j = s + i.right + i.left, C = l + i.top + i.bottom, c = 15, d = 30, k = -90, x = 90, p = -180, b = 180, m = 2, a = E(), r = N();
|
|
30
|
+
r.step([d, c]), r.extent([
|
|
25
31
|
[p, k],
|
|
26
32
|
[b, x]
|
|
27
|
-
]),
|
|
33
|
+
]), a.fitExtent(
|
|
28
34
|
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
35
|
+
[i.left, i.top],
|
|
36
|
+
[i.left + s - m, i.top + l]
|
|
31
37
|
],
|
|
32
|
-
|
|
38
|
+
r.outline()
|
|
33
39
|
);
|
|
34
|
-
const
|
|
35
|
-
return /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
|
|
40
|
+
const G = M(k + c, x, c), H = M(p + d, b, d), P = R(a).pointRadius(6), n = (t) => P(t) || void 0, e = typeof f < "u" ? g[f] : void 0, S = (e ? a([e == null ? void 0 : e.long, e == null ? void 0 : e.lat]) : [0, 0]) || [0, 0];
|
|
41
|
+
return /* @__PURE__ */ h(U, { width: j, height: C, className: y, children: [
|
|
42
|
+
/* @__PURE__ */ o("mask", { id: "imageMask", children: /* @__PURE__ */ o("path", { d: n(r.outline()), fill: "white" }) }),
|
|
43
|
+
/* @__PURE__ */ o(z, { d: n(r.outline()) }),
|
|
44
|
+
/* @__PURE__ */ o(D, { d: n(r()) }),
|
|
45
|
+
/* @__PURE__ */ o(
|
|
46
|
+
F,
|
|
41
47
|
{
|
|
42
|
-
style: { "--image-stack-opacity":
|
|
43
|
-
x:
|
|
44
|
-
y:
|
|
48
|
+
style: { "--image-stack-opacity": O && 1 },
|
|
49
|
+
x: i.left,
|
|
50
|
+
y: i.top,
|
|
45
51
|
width: s - m,
|
|
46
52
|
height: l,
|
|
47
53
|
mask: "url(#imageMask)",
|
|
48
|
-
children: /* @__PURE__ */
|
|
49
|
-
|
|
54
|
+
children: /* @__PURE__ */ o(
|
|
55
|
+
q,
|
|
50
56
|
{
|
|
51
|
-
images:
|
|
52
|
-
describedById:
|
|
53
|
-
visible:
|
|
54
|
-
loadCallback: () =>
|
|
57
|
+
images: v,
|
|
58
|
+
describedById: B,
|
|
59
|
+
visible: w,
|
|
60
|
+
loadCallback: () => W(!0),
|
|
55
61
|
showBackdrop: !1,
|
|
56
62
|
showLoader: !1
|
|
57
63
|
}
|
|
58
64
|
)
|
|
59
65
|
}
|
|
60
66
|
),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
67
|
+
/* @__PURE__ */ o("g", { children: g.map(({ id: t, lat: T, long: $ }, A) => /* @__PURE__ */ o(
|
|
68
|
+
J,
|
|
63
69
|
{
|
|
64
|
-
d:
|
|
70
|
+
d: n({
|
|
65
71
|
type: "Point",
|
|
66
|
-
coordinates: [
|
|
72
|
+
coordinates: [$, T]
|
|
67
73
|
}),
|
|
68
|
-
onMouseOver: () => u(
|
|
74
|
+
onMouseOver: () => u(A),
|
|
69
75
|
onMouseOut: () => u(void 0)
|
|
70
76
|
},
|
|
71
77
|
t
|
|
72
78
|
)) }),
|
|
73
|
-
/* @__PURE__ */
|
|
74
|
-
(t) => t === 0 ? null : /* @__PURE__ */
|
|
75
|
-
|
|
79
|
+
/* @__PURE__ */ o("g", { "aria-hidden": "true", children: G.map(
|
|
80
|
+
(t) => t === 0 ? null : /* @__PURE__ */ h(
|
|
81
|
+
K,
|
|
76
82
|
{
|
|
77
83
|
style: {
|
|
78
84
|
dominantBaseline: t > 0 ? "text-after-edge" : "text-before-edge"
|
|
79
85
|
},
|
|
80
|
-
transform: `translate(${
|
|
86
|
+
transform: `translate(${a([p, t])})`,
|
|
81
87
|
children: [
|
|
82
88
|
t,
|
|
83
89
|
"°"
|
|
@@ -86,10 +92,10 @@ const y = ({
|
|
|
86
92
|
t
|
|
87
93
|
)
|
|
88
94
|
) }),
|
|
89
|
-
/* @__PURE__ */
|
|
90
|
-
|
|
95
|
+
/* @__PURE__ */ o("g", { "aria-hidden": "true", children: H.map((t) => /* @__PURE__ */ h(
|
|
96
|
+
Q,
|
|
91
97
|
{
|
|
92
|
-
transform: `translate(${
|
|
98
|
+
transform: `translate(${a([t, 0])})`,
|
|
93
99
|
children: [
|
|
94
100
|
t,
|
|
95
101
|
"°"
|
|
@@ -97,26 +103,25 @@ const y = ({
|
|
|
97
103
|
},
|
|
98
104
|
t
|
|
99
105
|
)) }),
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
106
|
+
/* @__PURE__ */ o(
|
|
107
|
+
X,
|
|
102
108
|
{
|
|
103
109
|
strokeWidth: m,
|
|
104
|
-
d: r
|
|
110
|
+
d: n(r.outline())
|
|
105
111
|
}
|
|
106
112
|
),
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
|
|
113
|
+
/* @__PURE__ */ o(
|
|
114
|
+
V,
|
|
109
115
|
{
|
|
110
|
-
visible: !!
|
|
116
|
+
visible: !!e,
|
|
111
117
|
x: S[0],
|
|
112
118
|
y: S[1],
|
|
113
|
-
children:
|
|
119
|
+
children: e == null ? void 0 : e.id
|
|
114
120
|
}
|
|
115
121
|
)
|
|
116
122
|
] });
|
|
117
123
|
};
|
|
118
|
-
|
|
119
|
-
const rt = y;
|
|
124
|
+
Y.displayName = "Widgets.SupernovaThreeVector.Skymap";
|
|
120
125
|
export {
|
|
121
|
-
|
|
126
|
+
Y as default
|
|
122
127
|
};
|
|
@@ -21,7 +21,7 @@ export declare const Background: import('styled-components').IStyledComponent<"w
|
|
|
21
21
|
accentHeight?: string | number | undefined;
|
|
22
22
|
accumulate?: "none" | "sum" | undefined;
|
|
23
23
|
additive?: "replace" | "sum" | undefined;
|
|
24
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
24
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
25
25
|
allowReorder?: "yes" | "no" | undefined;
|
|
26
26
|
alphabetic?: string | number | undefined;
|
|
27
27
|
amplitude?: string | number | undefined;
|
|
@@ -503,7 +503,7 @@ export declare const Graticule: import('styled-components').IStyledComponent<"we
|
|
|
503
503
|
accentHeight?: string | number | undefined;
|
|
504
504
|
accumulate?: "none" | "sum" | undefined;
|
|
505
505
|
additive?: "replace" | "sum" | undefined;
|
|
506
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
506
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
507
507
|
allowReorder?: "yes" | "no" | undefined;
|
|
508
508
|
alphabetic?: string | number | undefined;
|
|
509
509
|
amplitude?: string | number | undefined;
|
|
@@ -985,7 +985,7 @@ export declare const Outline: import('styled-components').IStyledComponent<"web"
|
|
|
985
985
|
accentHeight?: string | number | undefined;
|
|
986
986
|
accumulate?: "none" | "sum" | undefined;
|
|
987
987
|
additive?: "replace" | "sum" | undefined;
|
|
988
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
988
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
989
989
|
allowReorder?: "yes" | "no" | undefined;
|
|
990
990
|
alphabetic?: string | number | undefined;
|
|
991
991
|
amplitude?: string | number | undefined;
|
|
@@ -1467,7 +1467,7 @@ export declare const LatLabel: import('styled-components').IStyledComponent<"web
|
|
|
1467
1467
|
accentHeight?: string | number | undefined;
|
|
1468
1468
|
accumulate?: "none" | "sum" | undefined;
|
|
1469
1469
|
additive?: "replace" | "sum" | undefined;
|
|
1470
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
1470
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
1471
1471
|
allowReorder?: "yes" | "no" | undefined;
|
|
1472
1472
|
alphabetic?: string | number | undefined;
|
|
1473
1473
|
amplitude?: string | number | undefined;
|
|
@@ -1949,7 +1949,7 @@ export declare const LongLabel: import('styled-components').IStyledComponent<"we
|
|
|
1949
1949
|
accentHeight?: string | number | undefined;
|
|
1950
1950
|
accumulate?: "none" | "sum" | undefined;
|
|
1951
1951
|
additive?: "replace" | "sum" | undefined;
|
|
1952
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
1952
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
1953
1953
|
allowReorder?: "yes" | "no" | undefined;
|
|
1954
1954
|
alphabetic?: string | number | undefined;
|
|
1955
1955
|
amplitude?: string | number | undefined;
|
|
@@ -2431,7 +2431,7 @@ export declare const ImageStackerWrapper: import('styled-components').IStyledCom
|
|
|
2431
2431
|
accentHeight?: string | number | undefined;
|
|
2432
2432
|
accumulate?: "none" | "sum" | undefined;
|
|
2433
2433
|
additive?: "replace" | "sum" | undefined;
|
|
2434
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2434
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2435
2435
|
allowReorder?: "yes" | "no" | undefined;
|
|
2436
2436
|
alphabetic?: string | number | undefined;
|
|
2437
2437
|
amplitude?: string | number | undefined;
|
|
@@ -2913,7 +2913,7 @@ export declare const UserObject: import('styled-components').IStyledComponent<"w
|
|
|
2913
2913
|
accentHeight?: string | number | undefined;
|
|
2914
2914
|
accumulate?: "none" | "sum" | undefined;
|
|
2915
2915
|
additive?: "replace" | "sum" | undefined;
|
|
2916
|
-
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "
|
|
2916
|
+
alignmentBaseline?: "inherit" | "alphabetic" | "hanging" | "ideographic" | "mathematical" | "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | undefined;
|
|
2917
2917
|
allowReorder?: "yes" | "no" | undefined;
|
|
2918
2918
|
alphabetic?: string | number | undefined;
|
|
2919
2919
|
amplitude?: string | number | undefined;
|
|
@@ -1,38 +1,34 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
container-type: inline-size;
|
|
3
|
-
`,l=e.default.div`
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("styled-components"),t=require("@rubin-epo/epo-react-lib/styles"),r=require("./Histogram/index.cjs"),n=require("./Skymap/index.cjs"),o=i=>i&&i.__esModule?i:{default:i},e=o(a),s=e.default.div`
|
|
4
2
|
--three-vector-gap: calc(var(--PADDING_SMALL, 20px) / 2);
|
|
5
3
|
|
|
6
4
|
display: grid;
|
|
7
5
|
grid-template-columns: 1fr;
|
|
8
|
-
grid-
|
|
6
|
+
grid-auto-rows: min-content;
|
|
9
7
|
grid-template-areas:
|
|
10
8
|
"skymap"
|
|
11
9
|
"histogram"
|
|
12
|
-
"slider"
|
|
13
|
-
"reset";
|
|
10
|
+
"slider";
|
|
14
11
|
gap: var(--three-vector-gap);
|
|
15
12
|
|
|
16
|
-
@
|
|
13
|
+
@media (orientation: landscape) {
|
|
17
14
|
grid-template-columns: 1fr 1fr;
|
|
18
|
-
grid-template-rows: 1fr min-content
|
|
15
|
+
grid-template-rows: 1fr min-content;
|
|
19
16
|
grid-template-areas:
|
|
20
17
|
"histogram skymap"
|
|
21
|
-
"slider ."
|
|
22
|
-
"reset reset";
|
|
18
|
+
"slider .";
|
|
23
19
|
}
|
|
24
20
|
|
|
25
21
|
@container (min-width: ${t.token("BREAK_TABLET_MIN")}) {
|
|
26
22
|
--three-vector-gap: var(--PADDING_SMALL, 20px);
|
|
27
23
|
gap: var(--three-vector-gap);
|
|
28
24
|
}
|
|
29
|
-
`,
|
|
25
|
+
`,d=e.default.div`
|
|
30
26
|
display: flex;
|
|
31
27
|
flex-direction: column;
|
|
32
28
|
gap: var(--three-vector-gap);
|
|
33
29
|
container-type: inline-size;
|
|
34
30
|
grid-area: histogram;
|
|
35
|
-
`,
|
|
31
|
+
`,l=e.default(r.default)`
|
|
36
32
|
font-size: 0.75em;
|
|
37
33
|
|
|
38
34
|
@container (
|
|
@@ -40,17 +36,15 @@
|
|
|
40
36
|
) {
|
|
41
37
|
font-size: 1em;
|
|
42
38
|
}
|
|
43
|
-
`,
|
|
39
|
+
`,c=e.default.div`
|
|
44
40
|
grid-area: slider;
|
|
45
|
-
`,
|
|
46
|
-
grid-area: reset;
|
|
47
|
-
`,g=e.default.div`
|
|
41
|
+
`,m=e.default.div`
|
|
48
42
|
display: flex;
|
|
49
43
|
flex-direction: column;
|
|
50
44
|
gap: var(--three-vector-gap);
|
|
51
45
|
container-type: inline-size;
|
|
52
46
|
grid-area: skymap;
|
|
53
|
-
`,
|
|
47
|
+
`,p=e.default(n.default)`
|
|
54
48
|
max-width: 100%;
|
|
55
49
|
font-size: 2.25em;
|
|
56
50
|
|
|
@@ -71,6 +65,6 @@
|
|
|
71
65
|
) {
|
|
72
66
|
font-size: 1em;
|
|
73
67
|
}
|
|
74
|
-
`,
|
|
68
|
+
`,g=e.default.h4`
|
|
75
69
|
margin: 0;
|
|
76
|
-
`;exports.ChartTitle=
|
|
70
|
+
`;exports.ChartTitle=g;exports.Histogram=l;exports.HistogramContainer=d;exports.Skymap=p;exports.SkymapContainer=m;exports.SliderContainer=c;exports.ThreeVectorLayout=s;
|
|
@@ -1,45 +1,39 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import e from "styled-components";
|
|
3
3
|
import { token as t } from "@rubin-epo/epo-react-lib/styles";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
import o from "./Skymap/index.js";
|
|
8
|
-
const g = e(r)`
|
|
9
|
-
container-type: inline-size;
|
|
10
|
-
`, l = e.div`
|
|
4
|
+
import i from "./Histogram/index.js";
|
|
5
|
+
import r from "./Skymap/index.js";
|
|
6
|
+
const s = e.div`
|
|
11
7
|
--three-vector-gap: calc(var(--PADDING_SMALL, 20px) / 2);
|
|
12
8
|
|
|
13
9
|
display: grid;
|
|
14
10
|
grid-template-columns: 1fr;
|
|
15
|
-
grid-
|
|
11
|
+
grid-auto-rows: min-content;
|
|
16
12
|
grid-template-areas:
|
|
17
13
|
"skymap"
|
|
18
14
|
"histogram"
|
|
19
|
-
"slider"
|
|
20
|
-
"reset";
|
|
15
|
+
"slider";
|
|
21
16
|
gap: var(--three-vector-gap);
|
|
22
17
|
|
|
23
|
-
@
|
|
18
|
+
@media (orientation: landscape) {
|
|
24
19
|
grid-template-columns: 1fr 1fr;
|
|
25
|
-
grid-template-rows: 1fr min-content
|
|
20
|
+
grid-template-rows: 1fr min-content;
|
|
26
21
|
grid-template-areas:
|
|
27
22
|
"histogram skymap"
|
|
28
|
-
"slider ."
|
|
29
|
-
"reset reset";
|
|
23
|
+
"slider .";
|
|
30
24
|
}
|
|
31
25
|
|
|
32
26
|
@container (min-width: ${t("BREAK_TABLET_MIN")}) {
|
|
33
27
|
--three-vector-gap: var(--PADDING_SMALL, 20px);
|
|
34
28
|
gap: var(--three-vector-gap);
|
|
35
29
|
}
|
|
36
|
-
`,
|
|
30
|
+
`, c = e.div`
|
|
37
31
|
display: flex;
|
|
38
32
|
flex-direction: column;
|
|
39
33
|
gap: var(--three-vector-gap);
|
|
40
34
|
container-type: inline-size;
|
|
41
35
|
grid-area: histogram;
|
|
42
|
-
`,
|
|
36
|
+
`, p = e(i)`
|
|
43
37
|
font-size: 0.75em;
|
|
44
38
|
|
|
45
39
|
@container (
|
|
@@ -47,17 +41,15 @@ const g = e(r)`
|
|
|
47
41
|
) {
|
|
48
42
|
font-size: 1em;
|
|
49
43
|
}
|
|
50
|
-
`,
|
|
44
|
+
`, d = e.div`
|
|
51
45
|
grid-area: slider;
|
|
52
|
-
`,
|
|
53
|
-
grid-area: reset;
|
|
54
|
-
`, B = e.div`
|
|
46
|
+
`, g = e.div`
|
|
55
47
|
display: flex;
|
|
56
48
|
flex-direction: column;
|
|
57
49
|
gap: var(--three-vector-gap);
|
|
58
50
|
container-type: inline-size;
|
|
59
51
|
grid-area: skymap;
|
|
60
|
-
`,
|
|
52
|
+
`, l = e(r)`
|
|
61
53
|
max-width: 100%;
|
|
62
54
|
font-size: 2.25em;
|
|
63
55
|
|
|
@@ -78,17 +70,15 @@ const g = e(r)`
|
|
|
78
70
|
) {
|
|
79
71
|
font-size: 1em;
|
|
80
72
|
}
|
|
81
|
-
`,
|
|
73
|
+
`, f = e.h4`
|
|
82
74
|
margin: 0;
|
|
83
75
|
`;
|
|
84
76
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
g as ThreeVectorContainer,
|
|
93
|
-
l as ThreeVectorLayout
|
|
77
|
+
f as ChartTitle,
|
|
78
|
+
p as Histogram,
|
|
79
|
+
c as HistogramContainer,
|
|
80
|
+
l as Skymap,
|
|
81
|
+
g as SkymapContainer,
|
|
82
|
+
d as SliderContainer,
|
|
83
|
+
s as ThreeVectorLayout
|
|
94
84
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ViewerProps {
|
|
4
|
+
ra: number;
|
|
5
|
+
dec: number;
|
|
6
|
+
fov: [number, number];
|
|
7
|
+
}
|
|
8
|
+
interface ViewIndicatorProps extends Partial<ViewerProps> {
|
|
9
|
+
size?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const ViewIndicator: FC<ViewIndicatorProps>;
|
|
13
|
+
export default ViewIndicator;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("styled-components"),r=o=>o&&o.__esModule?o:{default:o},e=r(t),i=e.default.div`
|
|
2
|
+
--size-svg-inner: calc(var(--size-container) * 0.65);
|
|
3
|
+
|
|
4
|
+
aspect-ratio: 1;
|
|
5
|
+
background-color: #313333;
|
|
6
|
+
block-size: var(--size-container);
|
|
7
|
+
border-radius: calc(var(--size-container) / 2);
|
|
8
|
+
color: var(--color-font-invert);
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
position: relative;
|
|
13
|
+
user-select: none;
|
|
14
|
+
`,l=e.default.svg`
|
|
15
|
+
aspect-ratio: 1;
|
|
16
|
+
overflow: visible;
|
|
17
|
+
width: calc(var(--size-container) * 0.65);
|
|
18
|
+
`,n=e.default.div`
|
|
19
|
+
font-size: calc(calc(var(--size-container) - var(--size-svg-inner)) / 2);
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
line-height: 1;
|
|
22
|
+
position: absolute;
|
|
23
|
+
top: 0px;
|
|
24
|
+
`,a=e.default.path`
|
|
25
|
+
fill: none;
|
|
26
|
+
stroke: currentColor;
|
|
27
|
+
stroke-width: 3;
|
|
28
|
+
`,c=e.default.path`
|
|
29
|
+
fill: none;
|
|
30
|
+
stroke: currentColor;
|
|
31
|
+
stroke-width: 2;
|
|
32
|
+
`;e.default.path`
|
|
33
|
+
fill: none;
|
|
34
|
+
stroke: currentColor;
|
|
35
|
+
stroke-width: 2;
|
|
36
|
+
opacity: 0.85;
|
|
37
|
+
`;const s=e.default.g`
|
|
38
|
+
--color-fill-primary: var(--color-rubin-yellow-200);
|
|
39
|
+
--color-fill-secondary: #eba85b;
|
|
40
|
+
fill: var(--color-fill-primary);
|
|
41
|
+
fill: color-mix(
|
|
42
|
+
in hsl,
|
|
43
|
+
var(--color-fill-primary) var(--percent-mix-primary),
|
|
44
|
+
var(--color-fill-secondary) var(--percent-mix-secondary)
|
|
45
|
+
);
|
|
46
|
+
`,d=e.default.path`
|
|
47
|
+
opacity: 0.8;
|
|
48
|
+
`,f=e.default.path`
|
|
49
|
+
opacity: 0.3;
|
|
50
|
+
`,u=e.default.path`
|
|
51
|
+
opacity: 0.5;
|
|
52
|
+
`;exports.Container=i;exports.Meridian=c;exports.NorthDirection=n;exports.Outline=a;exports.Plane=d;exports.SVG=l;exports.SideEdges=f;exports.TopEdges=u;exports.ViewCone=s;
|