@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.
Files changed (44) hide show
  1. package/README.MD +1 -1
  2. package/dist/ViewIndicator.cjs +1 -1
  3. package/dist/ViewIndicator.js +50 -44
  4. package/dist/atomic/Blinker/Controls/styles.d.ts +1 -273
  5. package/dist/atomic/Blinker/styles.d.ts +2 -545
  6. package/dist/atomic/ElapsedTime/styles.d.ts +6 -1634
  7. package/dist/atomic/ImageStack/index.d.ts +2 -2
  8. package/dist/atomic/LiveRegion/styles.d.ts +1 -273
  9. package/dist/atomic/Loader/styles.d.ts +1 -273
  10. package/dist/atomic/PlaybackControl/styles.d.ts +2 -555
  11. package/dist/atomic/PlotWrapper/styles.d.ts +1 -273
  12. package/dist/charts/Base/styles.d.ts +10 -2931
  13. package/dist/charts/Readout/index.cjs +1 -1
  14. package/dist/charts/Readout/index.js +18 -25
  15. package/dist/charts/Readout/styles.d.ts +2 -548
  16. package/dist/charts/ScatterPlot/index.cjs +1 -1
  17. package/dist/charts/ScatterPlot/index.js +50 -53
  18. package/dist/charts/ScatterPlot/styles.d.ts +2 -14
  19. package/dist/charts/Tooltip/styles.d.ts +6 -548
  20. package/dist/charts/styles.d.ts +6 -2893
  21. package/dist/layout/AspectRatio/styles.d.ts +1 -273
  22. package/dist/layout/Controls/styles.d.ts +12 -1918
  23. package/dist/styles/svg.d.ts +1 -273
  24. package/dist/widgets/CameraFilter/styles.d.ts +18 -5224
  25. package/dist/widgets/ColorTool/FilterControls/styles.d.ts +7 -1257
  26. package/dist/widgets/FilterTool/styles.d.ts +11 -3444
  27. package/dist/widgets/LightCurvePlot/Plot/styles.d.ts +3 -817
  28. package/dist/widgets/LightCurvePlot/PlotWithCurve/A11Y/LightCurveLabel/styles.d.ts +1 -276
  29. package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/index.d.ts +2 -1
  30. package/dist/widgets/LightCurvePlot/PlotWithCurve/MagnitudeSlider/styles.d.ts +6 -0
  31. package/dist/widgets/LightCurvePlot/PlotWithCurve/index.d.ts +1 -1
  32. package/dist/widgets/LightCurvePlot/PlotWithCurve/styles.d.ts +6 -820
  33. package/dist/widgets/SourceSelector/Message/styles.d.ts +2 -2
  34. package/dist/widgets/SourceSelector/SelectionList/styles.d.ts +3 -817
  35. package/dist/widgets/SourceSelector/SourceMap/styles.d.ts +2 -965
  36. package/dist/widgets/SourceSelector/styles.d.ts +2 -17
  37. package/dist/widgets/SupernovaThreeVector/Histogram/styles.d.ts +1 -483
  38. package/dist/widgets/SupernovaThreeVector/Skymap/index.cjs +1 -1
  39. package/dist/widgets/SupernovaThreeVector/Skymap/index.js +39 -45
  40. package/dist/widgets/SupernovaThreeVector/Skymap/styles.d.ts +7 -3375
  41. package/dist/widgets/ViewIndicator/styles.cjs +9 -24
  42. package/dist/widgets/ViewIndicator/styles.d.ts +4 -4401
  43. package/dist/widgets/ViewIndicator/styles.js +10 -32
  44. package/package.json +22 -22
@@ -1,22 +1,19 @@
1
1
  "use client";
2
- import { jsxs as u, jsx as s } from "react/jsx-runtime";
2
+ import { jsxs as u, jsx as i } from "react/jsx-runtime";
3
3
  import { useState as F } from "react";
4
- import "../Base/index.js";
5
- import J from "../XAxis/index.js";
6
- import K from "../YAxis/index.js";
7
- import R from "../Guidelines/index.js";
8
- import Q from "../Points/index.js";
9
- import U from "../Tooltip/index.js";
10
- import V from "../ClippingContainer/index.js";
11
- import "../Bars/index.js";
12
- import "../Viewport/index.js";
13
- import D from "../hooks/useAxis.js";
14
- import { Chart as Z } from "./styles.js";
15
- import T from "../defaults.js";
16
- import _ from "../canvas/Points/index.js";
4
+ import R from "../hooks/useAxis.js";
5
+ import { Chart as J } from "./styles.js";
6
+ import D from "../defaults.js";
7
+ import K from "../canvas/Points/index.js";
8
+ import Q from "../YAxis/index.js";
9
+ import U from "../ClippingContainer/index.js";
10
+ import T from "../Guidelines/index.js";
11
+ import V from "../XAxis/index.js";
12
+ import Z from "../Tooltip/index.js";
13
+ import _ from "../Points/index.js";
17
14
  const $ = {
18
- svg: Q,
19
- canvas: _
15
+ svg: _,
16
+ canvas: K
20
17
  }, w = ({
21
18
  data: j,
22
19
  className: z,
@@ -32,32 +29,32 @@ const $ = {
32
29
  renderer: G = "svg",
33
30
  plotChildren: x
34
31
  }) => {
35
- const [y, h] = F(), { label: N, points: f } = j, a = { ...T.margins, ...M }, t = typeof y < "u" ? f[y] : f.find(({ id: v }) => v === E), p = [0 + a.left, d - a.right], b = [m - a.bottom, 0 + a.top], [i, I, o] = D({ ...l, range: p }), [r, P, e] = D({ ...c, range: b }), S = e(r[0]), g = o(i[0]), k = e(r[1]), O = o(i[1]), C = "x-axis-label", L = "y-axis-label", W = Math.abs(p[1] - p[0]), X = Math.abs(b[1] - b[0]), Y = $[G], H = /* @__PURE__ */ s(
32
+ const [y, h] = F(), { label: N, points: f } = j, r = { ...D.margins, ...M }, t = typeof y < "u" ? f[y] : f.find(({ id: p }) => p === E), b = [0 + r.left, d - r.right], g = [m - r.bottom, 0 + r.top], [s, I, e] = R({ ...l, range: b }), [a, P, o] = R({ ...c, range: g }), S = o(a[0]), v = e(s[0]), k = o(a[1]), O = e(s[1]), C = "x-axis-label", L = "y-axis-label", W = Math.abs(b[1] - b[0]), X = Math.abs(g[1] - g[0]), Y = $[G], H = /* @__PURE__ */ i(
36
33
  Y,
37
34
  {
38
35
  data: f,
39
- onHoverCallback: n ? (v) => h(v) : void 0,
36
+ onHoverCallback: n ? (p) => h(p) : void 0,
40
37
  onHoverOutCallback: n ? () => h(void 0) : void 0,
41
38
  width: d,
42
39
  height: m,
43
- xScale: o,
44
- yScale: e,
40
+ xScale: e,
41
+ yScale: o,
45
42
  label: N,
46
43
  onLoadedCallback: A
47
44
  }
48
45
  ), q = {
49
46
  Data: H,
50
- xScale: o,
51
- yScale: e,
47
+ xScale: e,
48
+ yScale: o,
52
49
  yStart: S,
53
50
  yEnd: k,
54
- xStart: g,
51
+ xStart: v,
55
52
  xEnd: O,
56
- yDomain: r,
57
- xDomain: i
53
+ yDomain: a,
54
+ xDomain: s
58
55
  };
59
56
  return /* @__PURE__ */ u(
60
- Z,
57
+ J,
61
58
  {
62
59
  verticalLabel: c.label,
63
60
  verticalLabelId: L,
@@ -68,66 +65,66 @@ const $ = {
68
65
  height: m,
69
66
  title: B,
70
67
  children: [
71
- /* @__PURE__ */ s(
72
- K,
68
+ /* @__PURE__ */ i(
69
+ Q,
73
70
  {
74
71
  ticks: P,
75
- x: g,
72
+ x: v,
76
73
  labelledById: L,
77
- yDomain: r,
78
- yScale: e
74
+ yDomain: a,
75
+ yScale: o
79
76
  }
80
77
  ),
81
78
  /* @__PURE__ */ u(
82
- V,
79
+ U,
83
80
  {
84
- x: g,
81
+ x: v,
85
82
  y: k,
86
83
  width: W,
87
84
  height: X,
88
85
  children: [
89
- l.guidelines && /* @__PURE__ */ s(
90
- R,
86
+ l.guidelines && /* @__PURE__ */ i(
87
+ T,
91
88
  {
92
89
  guides: I.length,
93
90
  direction: "vertical",
94
- xDomain: i,
95
- yDomain: r,
96
- xScale: o,
97
- yScale: e
91
+ xDomain: s,
92
+ yDomain: a,
93
+ xScale: e,
94
+ yScale: o
98
95
  }
99
96
  ),
100
- c.guidelines && /* @__PURE__ */ s(
101
- R,
97
+ c.guidelines && /* @__PURE__ */ i(
98
+ T,
102
99
  {
103
100
  guides: P.length,
104
- xDomain: i,
105
- yDomain: r,
106
- xScale: o,
107
- yScale: e
101
+ xDomain: s,
102
+ yDomain: a,
103
+ xScale: e,
104
+ yScale: o
108
105
  }
109
106
  ),
110
107
  x ? x(q) : H
111
108
  ]
112
109
  }
113
110
  ),
114
- /* @__PURE__ */ s(
115
- J,
111
+ /* @__PURE__ */ i(
112
+ V,
116
113
  {
117
114
  ticks: I,
118
115
  y: S,
119
116
  labelledById: C,
120
- xDomain: i,
121
- xScale: o
117
+ xDomain: s,
118
+ xScale: e
122
119
  }
123
120
  ),
124
121
  n && /* @__PURE__ */ u(
125
- U,
122
+ Z,
126
123
  {
127
- x: t ? o(t.x) : void 0,
128
- y: t ? e(t.y) : void 0,
124
+ x: t ? e(t.x) : void 0,
125
+ y: t ? o(t.y) : void 0,
129
126
  visible: !!t,
130
- offset: T.pointRadius,
127
+ offset: D.pointRadius,
131
128
  children: [
132
129
  t && typeof n == "function" && n(t),
133
130
  t && typeof n == "string" && n
@@ -1,16 +1,4 @@
1
1
  /// <reference types="react" />
2
- export declare const Chart: import('styled-components').IStyledComponent<"web", {
3
- className?: string | undefined;
4
- title?: string | undefined;
5
- verticalLabel?: string | undefined;
6
- verticalLabelId?: string | undefined;
7
- horizontalLabel?: string | undefined;
8
- horizontalLabelId?: string | undefined;
9
- xMin?: number | undefined;
10
- xMax?: number | undefined;
11
- width?: number | undefined;
12
- yMin?: number | undefined;
13
- yMax?: number | undefined;
14
- height?: number | undefined;
2
+ export declare const Chart: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('../Base').BaseChartProps & {
15
3
  children?: import('react').ReactNode;
16
- }> & import('react').FunctionComponent<import('react').PropsWithChildren<import('../Base').BaseChartProps>>;
4
+ }, never>> & string & Omit<import('react').FunctionComponent<import('react').PropsWithChildren<import('../Base').BaseChartProps>>, keyof import('react').Component<any, {}, any>>;