@azohra/meteo.station 0.7.0 → 0.7.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.
Files changed (217) hide show
  1. package/dist/air.d.ts +4 -7
  2. package/dist/air.js +1 -2
  3. package/dist/client/climatology.d.ts +4 -7
  4. package/dist/client/climatology.js +1 -2
  5. package/dist/client/history.d.ts +14 -17
  6. package/dist/client/history.js +1 -2
  7. package/dist/client/live.d.ts +9 -11
  8. package/dist/client/live.js +1 -2
  9. package/dist/client/poll.d.ts +9 -12
  10. package/dist/client/poll.js +1 -2
  11. package/dist/client/stores.d.ts +8 -10
  12. package/dist/client/stores.js +1 -2
  13. package/dist/client/ticker.d.ts +1 -4
  14. package/dist/client/ticker.js +1 -2
  15. package/dist/climatology.d.ts +13 -15
  16. package/dist/climatology.js +1 -2
  17. package/dist/connectivity.d.ts +7 -10
  18. package/dist/connectivity.js +1 -2
  19. package/dist/contract-climatology.d.ts +11 -14
  20. package/dist/contract-climatology.js +1 -2
  21. package/dist/contract.d.ts +45 -48
  22. package/dist/contract.js +1 -2
  23. package/dist/derive.d.ts +24 -26
  24. package/dist/derive.js +1 -2
  25. package/dist/display.d.ts +6 -9
  26. package/dist/display.js +1 -2
  27. package/dist/elements/elements/AirExtremesElement.d.ts +2 -5
  28. package/dist/elements/elements/AirExtremesElement.js +1 -2
  29. package/dist/elements/elements/AirMatrixElement.d.ts +2 -5
  30. package/dist/elements/elements/AirMatrixElement.js +1 -2
  31. package/dist/elements/elements/ClimatologyDailyPatternElement.d.ts +2 -5
  32. package/dist/elements/elements/ClimatologyDailyPatternElement.js +1 -2
  33. package/dist/elements/elements/ClimatologyRoseElement.d.ts +2 -5
  34. package/dist/elements/elements/ClimatologyRoseElement.js +1 -2
  35. package/dist/elements/elements/CompassFanElement.d.ts +2 -5
  36. package/dist/elements/elements/CompassFanElement.js +1 -2
  37. package/dist/elements/elements/CurrentConditionsElement.d.ts +2 -5
  38. package/dist/elements/elements/CurrentConditionsElement.js +1 -2
  39. package/dist/elements/elements/DailyPatternElement.d.ts +2 -5
  40. package/dist/elements/elements/DailyPatternElement.js +1 -2
  41. package/dist/elements/elements/DialElement.d.ts +2 -5
  42. package/dist/elements/elements/DialElement.js +1 -2
  43. package/dist/elements/elements/FavorableShareElement.d.ts +2 -5
  44. package/dist/elements/elements/FavorableShareElement.js +1 -2
  45. package/dist/elements/elements/FreshnessBadgeElement.d.ts +2 -5
  46. package/dist/elements/elements/FreshnessBadgeElement.js +1 -2
  47. package/dist/elements/elements/RecentSummariesElement.d.ts +2 -5
  48. package/dist/elements/elements/RecentSummariesElement.js +1 -2
  49. package/dist/elements/elements/SparklineElement.d.ts +2 -5
  50. package/dist/elements/elements/SparklineElement.js +1 -2
  51. package/dist/elements/elements/StationCardElement.d.ts +6 -8
  52. package/dist/elements/elements/StationCardElement.js +1 -2
  53. package/dist/elements/elements/StationFeedElement.d.ts +2 -5
  54. package/dist/elements/elements/StationFeedElement.js +1 -2
  55. package/dist/elements/elements/StationStripElement.d.ts +2 -5
  56. package/dist/elements/elements/StationStripElement.js +1 -2
  57. package/dist/elements/elements/StationTableElement.d.ts +3 -6
  58. package/dist/elements/elements/StationTableElement.js +1 -2
  59. package/dist/elements/elements/TrendChartElement.d.ts +2 -5
  60. package/dist/elements/elements/TrendChartElement.js +1 -2
  61. package/dist/elements/elements/WindArrowElement.d.ts +2 -5
  62. package/dist/elements/elements/WindArrowElement.js +1 -2
  63. package/dist/elements/elements/WindHistoryChartElement.d.ts +2 -5
  64. package/dist/elements/elements/WindHistoryChartElement.js +1 -2
  65. package/dist/elements/elements/WindRoseElement.d.ts +2 -5
  66. package/dist/elements/elements/WindRoseElement.js +1 -2
  67. package/dist/elements/elements/atoms.d.ts +9 -11
  68. package/dist/elements/elements/atoms.js +1 -2
  69. package/dist/elements/index.d.ts +3 -5
  70. package/dist/elements/index.js +1 -2
  71. package/dist/elements/lib/ambient.d.ts +2 -5
  72. package/dist/elements/lib/ambient.js +1 -2
  73. package/dist/elements/lib/attributes.js +1 -2
  74. package/dist/elements/lib/base.d.ts +3 -6
  75. package/dist/elements/lib/base.js +1 -2
  76. package/dist/elements/lib/context.js +1 -2
  77. package/dist/elements/lib/fragments.js +1 -2
  78. package/dist/elements/lib/h.js +1 -2
  79. package/dist/elements/lib/pinned-cursor.js +1 -2
  80. package/dist/elements/lib/render.js +1 -2
  81. package/dist/elements/register.js +1 -2
  82. package/dist/endpoints.d.ts +6 -9
  83. package/dist/endpoints.js +1 -2
  84. package/dist/fixtures.d.ts +7 -10
  85. package/dist/fixtures.js +1 -2
  86. package/dist/format.d.ts +11 -14
  87. package/dist/format.js +1 -2
  88. package/dist/geometry.d.ts +36 -38
  89. package/dist/geometry.js +1 -2
  90. package/dist/instruments.d.ts +37 -40
  91. package/dist/instruments.js +1 -2
  92. package/dist/merge-current.d.ts +4 -7
  93. package/dist/merge-current.js +1 -2
  94. package/dist/react/components/AirExtremes.d.ts +2 -5
  95. package/dist/react/components/AirExtremes.js +1 -2
  96. package/dist/react/components/AirMatrix.d.ts +2 -5
  97. package/dist/react/components/AirMatrix.js +1 -2
  98. package/dist/react/components/ClimatologyDailyPattern.d.ts +2 -5
  99. package/dist/react/components/ClimatologyDailyPattern.js +1 -2
  100. package/dist/react/components/ClimatologyRose.d.ts +2 -5
  101. package/dist/react/components/ClimatologyRose.js +1 -2
  102. package/dist/react/components/CompassFan.d.ts +2 -5
  103. package/dist/react/components/CompassFan.js +1 -2
  104. package/dist/react/components/CurrentConditions.d.ts +2 -5
  105. package/dist/react/components/CurrentConditions.js +1 -2
  106. package/dist/react/components/DailyPattern.d.ts +2 -5
  107. package/dist/react/components/DailyPattern.js +1 -2
  108. package/dist/react/components/Dial.d.ts +2 -5
  109. package/dist/react/components/Dial.js +1 -2
  110. package/dist/react/components/FavorableShare.d.ts +2 -5
  111. package/dist/react/components/FavorableShare.js +1 -2
  112. package/dist/react/components/FreshnessBadge.d.ts +2 -5
  113. package/dist/react/components/FreshnessBadge.js +1 -2
  114. package/dist/react/components/Readout.d.ts +2 -5
  115. package/dist/react/components/Readout.js +1 -2
  116. package/dist/react/components/RecentSummaries.d.ts +2 -5
  117. package/dist/react/components/RecentSummaries.js +1 -2
  118. package/dist/react/components/SceneTree.js +1 -2
  119. package/dist/react/components/Sparkline.d.ts +2 -5
  120. package/dist/react/components/Sparkline.js +1 -2
  121. package/dist/react/components/StationCard.d.ts +6 -8
  122. package/dist/react/components/StationCard.js +1 -2
  123. package/dist/react/components/StationFeedProvider.d.ts +3 -6
  124. package/dist/react/components/StationFeedProvider.js +1 -2
  125. package/dist/react/components/StationStrip.d.ts +2 -5
  126. package/dist/react/components/StationStrip.js +1 -2
  127. package/dist/react/components/StationTable.d.ts +3 -6
  128. package/dist/react/components/StationTable.js +1 -2
  129. package/dist/react/components/TrendChart.d.ts +2 -5
  130. package/dist/react/components/TrendChart.js +1 -2
  131. package/dist/react/components/WindArrow.d.ts +2 -5
  132. package/dist/react/components/WindArrow.js +1 -2
  133. package/dist/react/components/WindHistoryChart.d.ts +2 -5
  134. package/dist/react/components/WindHistoryChart.js +1 -2
  135. package/dist/react/components/WindRose.d.ts +2 -5
  136. package/dist/react/components/WindRose.js +1 -2
  137. package/dist/react/components/WindSampleStrip.d.ts +2 -5
  138. package/dist/react/components/WindSampleStrip.js +1 -2
  139. package/dist/react/components/atoms.d.ts +9 -11
  140. package/dist/react/components/atoms.js +1 -2
  141. package/dist/react/hooks/useFreshness.d.ts +1 -4
  142. package/dist/react/hooks/useFreshness.js +1 -2
  143. package/dist/react/hooks/useMeasuredChartWidth.d.ts +2 -5
  144. package/dist/react/hooks/useMeasuredChartWidth.js +1 -2
  145. package/dist/react/hooks/usePolledJson.js +1 -2
  146. package/dist/react/hooks/useStation.d.ts +2 -5
  147. package/dist/react/hooks/useStation.js +1 -2
  148. package/dist/react/hooks/useStationClimatology.d.ts +2 -5
  149. package/dist/react/hooks/useStationClimatology.js +1 -2
  150. package/dist/react/hooks/useStationCurrent.d.ts +2 -5
  151. package/dist/react/hooks/useStationCurrent.js +1 -2
  152. package/dist/react/hooks/useStationFeed.d.ts +2 -5
  153. package/dist/react/hooks/useStationFeed.js +1 -2
  154. package/dist/react/hooks/useStationLive.d.ts +2 -5
  155. package/dist/react/hooks/useStationLive.js +1 -2
  156. package/dist/react/lib/cells.js +1 -2
  157. package/dist/react/lib/use-pinned-cursor.js +1 -2
  158. package/dist/samples.d.ts +8 -11
  159. package/dist/samples.js +1 -2
  160. package/dist/scene/air-extremes.js +1 -2
  161. package/dist/scene/air-matrix.js +1 -2
  162. package/dist/scene/atoms.js +1 -2
  163. package/dist/scene/card.js +1 -2
  164. package/dist/scene/cells.js +1 -2
  165. package/dist/scene/chart.d.ts +2 -5
  166. package/dist/scene/chart.js +1 -2
  167. package/dist/scene/climatology-pattern.js +1 -2
  168. package/dist/scene/climatology-rose.js +1 -2
  169. package/dist/scene/compass-fan.js +1 -2
  170. package/dist/scene/current.js +1 -2
  171. package/dist/scene/daily-pattern.js +1 -2
  172. package/dist/scene/dial-parts.js +1 -2
  173. package/dist/scene/dial.js +1 -2
  174. package/dist/scene/favorable-share.js +1 -2
  175. package/dist/scene/glyphs.js +1 -2
  176. package/dist/scene/node.js +1 -2
  177. package/dist/scene/recent-summaries.js +1 -2
  178. package/dist/scene/rose.js +1 -2
  179. package/dist/scene/sample-strip.js +1 -2
  180. package/dist/scene/sparkline.js +1 -2
  181. package/dist/scene/strip.js +1 -2
  182. package/dist/scene/table.js +1 -2
  183. package/dist/scene/trend.js +1 -2
  184. package/dist/scene/wind-history.js +1 -2
  185. package/dist/scene/wind-plot.js +1 -2
  186. package/dist/server/adapter.d.ts +7 -10
  187. package/dist/server/adapter.js +1 -2
  188. package/dist/server/adapters/campbell.d.ts +11 -13
  189. package/dist/server/adapters/campbell.js +1 -2
  190. package/dist/server/adapters/ecowitt.d.ts +4 -7
  191. package/dist/server/adapters/ecowitt.js +1 -2
  192. package/dist/server/adapters/tempest.d.ts +4 -7
  193. package/dist/server/adapters/tempest.js +1 -2
  194. package/dist/server/adapters/windnerd-climatology.d.ts +5 -8
  195. package/dist/server/adapters/windnerd-climatology.js +1 -2
  196. package/dist/server/adapters/windnerd-live.d.ts +2 -5
  197. package/dist/server/adapters/windnerd-live.js +1 -2
  198. package/dist/server/adapters/windnerd.d.ts +22 -25
  199. package/dist/server/adapters/windnerd.js +1 -2
  200. package/dist/server/config.d.ts +18 -20
  201. package/dist/server/config.js +1 -2
  202. package/dist/server/environment.d.ts +20 -22
  203. package/dist/server/environment.js +1 -2
  204. package/dist/server/feed.d.ts +19 -21
  205. package/dist/server/feed.js +1 -2
  206. package/dist/server/handler.d.ts +4 -7
  207. package/dist/server/handler.js +1 -2
  208. package/dist/server/hologram.d.ts +9 -12
  209. package/dist/server/hologram.js +1 -2
  210. package/dist/server/live.d.ts +2 -5
  211. package/dist/server/live.js +1 -2
  212. package/dist/sse.js +1 -2
  213. package/dist/strings.d.ts +8 -11
  214. package/dist/strings.js +1 -2
  215. package/dist/windnerd.d.ts +4 -7
  216. package/dist/windnerd.js +1 -2
  217. package/package.json +9 -9
@@ -1,4 +1,4 @@
1
- //#region src/elements/lib/h.ts
1
+ // src/elements/lib/h.ts
2
2
  const SVG_NS = "http://www.w3.org/2000/svg";
3
3
  function apply(element, attrs, children) {
4
4
  if (attrs != null) for (const [name, value] of Object.entries(attrs)) {
@@ -31,5 +31,4 @@ function hs(tag, attrs = null, ...children) {
31
31
  apply(element, attrs, children);
32
32
  return element;
33
33
  }
34
- //#endregion
35
34
  export { h, hs };
@@ -1,5 +1,5 @@
1
1
  import { activeChartIndex, chartIndexAtClient, togglePinnedAt } from "../../scene/chart.js";
2
- //#region src/elements/lib/pinned-cursor.ts
2
+ // src/elements/lib/pinned-cursor.ts
3
3
  var PinnedCursor = class {
4
4
  #pinnedAt = null;
5
5
  #previewIndex = null;
@@ -44,5 +44,4 @@ var PinnedCursor = class {
44
44
  return chartIndexAtClient(scene.points, scene.frame, scene.scales, clientX, svg.getBoundingClientRect());
45
45
  }
46
46
  };
47
- //#endregion
48
47
  export { PinnedCursor };
@@ -1,6 +1,6 @@
1
1
  import { SVG_ROOT_TAGS } from "../../scene/node.js";
2
2
  import { h, hs } from "./h.js";
3
- //#region src/elements/lib/render.ts
3
+ // src/elements/lib/render.ts
4
4
  function renderChild(child, svg = false) {
5
5
  if (child == null || child === false) return null;
6
6
  if (typeof child === "string") return child;
@@ -26,5 +26,4 @@ function renderOptional(node) {
26
26
  function renderChildren(children) {
27
27
  return children.map((child) => renderChild(child)).filter((node) => node !== null);
28
28
  }
29
- //#endregion
30
29
  export { renderChild, renderChildren, renderOptional, renderScene };
@@ -1,5 +1,4 @@
1
1
  import { defineMeteoElements } from "./index.js";
2
- //#region src/elements/register.ts
2
+ // src/elements/register.ts
3
3
  defineMeteoElements();
4
- //#endregion
5
4
  export {};
@@ -1,12 +1,9 @@
1
- //#region src/endpoints.d.ts
2
- declare function feedEndpoint(base: string): string;
3
- declare function currentEndpoint(base: string, stationId: string): string;
4
- declare function liveEndpoint(base: string, stationId: string): string;
5
- declare function climatologyEndpoint(base: string, stationId: string): string;
6
- declare function historyEndpoint(base: string, stationId: string, query: {
1
+ export declare function feedEndpoint(base: string): string;
2
+ export declare function currentEndpoint(base: string, stationId: string): string;
3
+ export declare function liveEndpoint(base: string, stationId: string): string;
4
+ export declare function climatologyEndpoint(base: string, stationId: string): string;
5
+ export declare function historyEndpoint(base: string, stationId: string, query: {
7
6
  fromMs: number;
8
7
  toMs: number;
9
8
  periodMinutes: number;
10
- }): string;
11
- //#endregion
12
- export { climatologyEndpoint, currentEndpoint, feedEndpoint, historyEndpoint, liveEndpoint };
9
+ }): string;
package/dist/endpoints.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/endpoints.ts
1
+ // src/endpoints.ts
2
2
  const trimBase = (base) => base.replace(/\/+$/, "");
3
3
  function feedEndpoint(base) {
4
4
  return `${trimBase(base)}/feed`;
@@ -21,5 +21,4 @@ function historyEndpoint(base, stationId, query) {
21
21
  });
22
22
  return `${trimBase(base)}/history?${params.toString()}`;
23
23
  }
24
- //#endregion
25
24
  export { climatologyEndpoint, currentEndpoint, feedEndpoint, historyEndpoint, liveEndpoint };
@@ -1,16 +1,15 @@
1
1
  import { HistoryPoint, StationMeta } from "./contract.js";
2
2
  import { SpeedThresholds } from "./derive.js";
3
- //#region src/fixtures.d.ts
4
- declare const LAUNCH_RIDGE_META: StationMeta;
3
+ export declare const LAUNCH_RIDGE_META: StationMeta;
5
4
  /** The wind grading the demo exhibits judge with. */
6
- declare const EXHIBIT_THRESHOLDS: SpeedThresholds;
5
+ export declare const EXHIBIT_THRESHOLDS: SpeedThresholds;
7
6
  /** Deterministic PRNG (mulberry32). */
8
- declare function mulberry32(seed: number): () => number;
7
+ export declare function mulberry32(seed: number): () => number;
9
8
  /** Smoothstep clamped to [0, 1]. */
10
- declare const smooth: (value: number) => number;
9
+ export declare const smooth: (value: number) => number;
11
10
  /** Deterministic wobble in roughly [-1, 1]. */
12
- declare const wobble: (seed: number) => number;
13
- interface LongHistoryOptions {
11
+ export declare const wobble: (seed: number) => number;
12
+ export interface LongHistoryOptions {
14
13
  /** The series ends here. */
15
14
  nowMs: number;
16
15
  /** How many days of history to build. */
@@ -22,6 +21,4 @@ interface LongHistoryOptions {
22
21
  withGaps?: boolean;
23
22
  }
24
23
  /** A long-range deterministic synthetic history: seasonal, diurnal, with occasional dropouts. */
25
- declare function buildLongHistory({ nowMs, days, periodMinutes, seed, withGaps }: LongHistoryOptions): HistoryPoint[];
26
- //#endregion
27
- export { EXHIBIT_THRESHOLDS, LAUNCH_RIDGE_META, LongHistoryOptions, buildLongHistory, mulberry32, smooth, wobble };
24
+ export declare function buildLongHistory({ nowMs, days, periodMinutes, seed, withGaps }: LongHistoryOptions): HistoryPoint[];
package/dist/fixtures.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { kmhToMps } from "@azohra/meteo.core";
2
- //#region src/fixtures.ts
2
+ // src/fixtures.ts
3
3
  const MINUTE_MS = 6e4;
4
4
  const DAY_MS = 1440 * MINUTE_MS;
5
5
  const LAUNCH_RIDGE_META = {
@@ -91,5 +91,4 @@ function buildLongHistory({ nowMs, days = 420, periodMinutes = 15, seed = 995373
91
91
  }
92
92
  return points;
93
93
  }
94
- //#endregion
95
94
  export { EXHIBIT_THRESHOLDS, LAUNCH_RIDGE_META, buildLongHistory, mulberry32, smooth, wobble };
package/dist/format.d.ts CHANGED
@@ -1,13 +1,12 @@
1
1
  import { Station } from "./contract.js";
2
2
  import { CompassPoint, SpeedUnit } from "./derive.js";
3
3
  import { FormatTime, StationStrings } from "./strings.js";
4
- //#region src/format.d.ts
5
- declare function roundSpeed(mps: number, unit: SpeedUnit): number;
6
- declare function optionalSpeed(mps: number | null, unit: SpeedUnit): string;
7
- declare function temperatureValue(temperatureC: number): string;
8
- declare function temperatureText(temperatureC: number | null, words: StationStrings): string;
9
- type SpeedKind = "average" | "gust" | "lull";
10
- type DirectionCellData = {
4
+ export declare function roundSpeed(mps: number, unit: SpeedUnit): number;
5
+ export declare function optionalSpeed(mps: number | null, unit: SpeedUnit): string;
6
+ export declare function temperatureValue(temperatureC: number): string;
7
+ export declare function temperatureText(temperatureC: number | null, words: StationStrings): string;
8
+ export type SpeedKind = "average" | "gust" | "lull";
9
+ export type DirectionCellData = {
11
10
  kind: "calm";
12
11
  } | {
13
12
  kind: "dash";
@@ -17,15 +16,13 @@ type DirectionCellData = {
17
16
  compass: CompassPoint;
18
17
  rounded: number;
19
18
  };
20
- declare function directionCell(windAvgMps: number, windDirectionDeg: number | null): DirectionCellData;
21
- declare function updatedAtText(ageMs: number, observedAt: string, words: StationStrings, formatTime: FormatTime): string;
22
- type SummaryEntry = {
19
+ export declare function directionCell(windAvgMps: number, windDirectionDeg: number | null): DirectionCellData;
20
+ export declare function updatedAtText(ageMs: number, observedAt: string, words: StationStrings, formatTime: FormatTime): string;
21
+ export type SummaryEntry = {
23
22
  label: string;
24
23
  value: string;
25
24
  };
26
- declare function summaryEntries(station: Station, unit: SpeedUnit, words: StationStrings, formatTime: FormatTime): {
25
+ export declare function summaryEntries(station: Station, unit: SpeedUnit, words: StationStrings, formatTime: FormatTime): {
27
26
  entries: SummaryEntry[];
28
27
  periodEndedAt: string;
29
- } | null;
30
- //#endregion
31
- export { DirectionCellData, SpeedKind, SummaryEntry, directionCell, optionalSpeed, roundSpeed, summaryEntries, temperatureText, temperatureValue, updatedAtText };
28
+ } | null;
package/dist/format.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { anchoredAgeMs, compassDirection, isCalm, periodSummary, speedFromMps } from "./derive.js";
2
- //#region src/format.ts
2
+ // src/format.ts
3
3
  function roundSpeed(mps, unit) {
4
4
  return Math.round(speedFromMps(mps, unit));
5
5
  }
@@ -82,5 +82,4 @@ function summaryEntries(station, unit, words, formatTime) {
82
82
  periodEndedAt: summary.periodEndedAt
83
83
  };
84
84
  }
85
- //#endregion
86
85
  export { UPDATED_ABSOLUTE_AFTER_MS, directionCell, optionalSpeed, readingAgeMs, relativeWords, roundSpeed, speedMpsOf, summaryEntries, temperatureText, temperatureValue, updatedAtText };
@@ -1,7 +1,6 @@
1
1
  import { History, HistoryPoint } from "./contract.js";
2
2
  import { DirectionArc } from "@azohra/meteo.core";
3
- //#region src/geometry.d.ts
4
- type ChartFrame = {
3
+ export type ChartFrame = {
5
4
  height: number;
6
5
  labelRow: number;
7
6
  left: number;
@@ -13,12 +12,12 @@ type ChartFrame = {
13
12
  valueRow: number;
14
13
  width: number;
15
14
  };
16
- declare const CHART_FALLBACK_WIDTH = 360;
17
- declare function measuredChartWidth(measured: number): number;
18
- type TickAnchor = "end" | "middle" | "start";
19
- declare function tickAnchor(index: number, lastIndex: number): TickAnchor;
20
- declare function chartFrame(width: number): ChartFrame;
21
- type ChartScales = {
15
+ export declare const CHART_FALLBACK_WIDTH = 360;
16
+ export declare function measuredChartWidth(measured: number): number;
17
+ export type TickAnchor = "end" | "middle" | "start";
18
+ export declare function tickAnchor(index: number, lastIndex: number): TickAnchor;
19
+ export declare function chartFrame(width: number): ChartFrame;
20
+ export type ChartScales = {
22
21
  startMs: number;
23
22
  endMs: number;
24
23
  durationMs: number;
@@ -27,37 +26,37 @@ type ChartScales = {
27
26
  xAt: (observedAt: string) => number;
28
27
  yAt: (speedMps: number) => number;
29
28
  };
30
- type ChartScaleOptions = {
29
+ export type ChartScaleOptions = {
31
30
  niceStepMps?: number;
32
31
  floorMps?: number;
33
32
  };
34
- declare function chartScales(points: ReadonlyArray<HistoryPoint>, frame: ChartFrame, options?: ChartScaleOptions): ChartScales;
35
- declare function bandPoints(points: ReadonlyArray<HistoryPoint>, scales: ChartScales): string | null;
36
- declare function averagePoints(points: ReadonlyArray<HistoryPoint>, scales: ChartScales): string;
33
+ export declare function chartScales(points: ReadonlyArray<HistoryPoint>, frame: ChartFrame, options?: ChartScaleOptions): ChartScales;
34
+ export declare function bandPoints(points: ReadonlyArray<HistoryPoint>, scales: ChartScales): string | null;
35
+ export declare function averagePoints(points: ReadonlyArray<HistoryPoint>, scales: ChartScales): string;
37
36
  declare function meanDirectionDeg$1(points: ReadonlyArray<HistoryPoint>): number | null;
38
- type Vane = {
37
+ export type Vane = {
39
38
  windAvgMps: number;
40
39
  windDirectionDeg: number | null;
41
40
  endIndex: number;
42
41
  midMs: number;
43
42
  startIndex: number;
44
43
  };
45
- declare function thinVanes(points: ReadonlyArray<HistoryPoint>, target?: number): Vane[];
46
- declare function vanePath(cx: number, cy: number, fromBearingDeg: number, { reach, spread }?: {
44
+ export declare function thinVanes(points: ReadonlyArray<HistoryPoint>, target?: number): Vane[];
45
+ export declare function vanePath(cx: number, cy: number, fromBearingDeg: number, { reach, spread }?: {
47
46
  reach?: number;
48
47
  spread?: number;
49
48
  }): string;
50
- type ChartTick = {
49
+ export type ChartTick = {
51
50
  index: number;
52
51
  timeMs: number;
53
52
  x: number;
54
53
  };
55
- declare function vaneTicks(vanes: ReadonlyArray<Vane>, scales: ChartScales, labelCount?: number): ChartTick[];
56
- declare function nearestIndex(points: ReadonlyArray<{
54
+ export declare function vaneTicks(vanes: ReadonlyArray<Vane>, scales: ChartScales, labelCount?: number): ChartTick[];
55
+ export declare function nearestIndex(points: ReadonlyArray<{
57
56
  observedAt: string;
58
57
  }>, chartX: number, frame: ChartFrame, scales: ChartScales): number | null;
59
- declare function speedBand(speedMps: number, thresholdsMps: ReadonlyArray<number>): number;
60
- type RoseSector = {
58
+ export declare function speedBand(speedMps: number, thresholdsMps: ReadonlyArray<number>): number;
59
+ export type RoseSector = {
61
60
  bearingDeg: number;
62
61
  frequency: number;
63
62
  meanSpeedMps: number | null;
@@ -67,32 +66,32 @@ type RoseSector = {
67
66
  * bandThresholdsMps — stacking is a judgment the consumer supplies. */
68
67
  bandCounts?: number[] | undefined;
69
68
  };
70
- type WindRoseSummary = {
69
+ export type WindRoseSummary = {
71
70
  sectors: RoseSector[];
72
71
  calmFraction: number;
73
72
  sampleCount: number;
74
73
  };
75
- declare function windRose(points: ReadonlyArray<HistoryPoint>, sectorCount?: number, options?: {
74
+ export declare function windRose(points: ReadonlyArray<HistoryPoint>, sectorCount?: number, options?: {
76
75
  bandThresholdsMps?: ReadonlyArray<number>;
77
76
  }): WindRoseSummary;
78
- declare const DAILY_PATTERN_DEFAULT_SLOT_MINUTES = 180;
79
- type DailyPatternSlot = {
77
+ export declare const DAILY_PATTERN_DEFAULT_SLOT_MINUTES = 180;
78
+ export type DailyPatternSlot = {
80
79
  startMinuteOfDay: number;
81
80
  sampleCount: number;
82
81
  windDirectionDeg: number | null;
83
82
  speedMps: number;
84
83
  };
85
- declare function dailyPattern(points: ReadonlyArray<HistoryPoint>, options?: {
84
+ export declare function dailyPattern(points: ReadonlyArray<HistoryPoint>, options?: {
86
85
  slotMinutes?: number;
87
86
  utcOffsetMinutes?: number;
88
87
  }): DailyPatternSlot[];
89
- declare const METEOROLOGICAL_SEASON_MONTHS: Record<"fall" | "spring" | "summer" | "winter", number[]>;
90
- declare function filterByMonth(points: ReadonlyArray<HistoryPoint>, months: ReadonlyArray<number>, utcOffsetMinutes?: number): HistoryPoint[];
91
- declare function filterByTimeOfDay(points: ReadonlyArray<HistoryPoint>, fromMinute: number, toMinute: number, utcOffsetMinutes?: number): HistoryPoint[];
88
+ export declare const METEOROLOGICAL_SEASON_MONTHS: Record<"fall" | "spring" | "summer" | "winter", number[]>;
89
+ export declare function filterByMonth(points: ReadonlyArray<HistoryPoint>, months: ReadonlyArray<number>, utcOffsetMinutes?: number): HistoryPoint[];
90
+ export declare function filterByTimeOfDay(points: ReadonlyArray<HistoryPoint>, fromMinute: number, toMinute: number, utcOffsetMinutes?: number): HistoryPoint[];
92
91
  /** The share of non-calm history blowing from inside the consumer's arcs;
93
92
  * null when nothing non-calm was measured. */
94
- declare function favorableShare(points: ReadonlyArray<HistoryPoint>, arcs: ReadonlyArray<DirectionArc>): number | null;
95
- type HistoryCoverage = {
93
+ export declare function favorableShare(points: ReadonlyArray<HistoryPoint>, arcs: ReadonlyArray<DirectionArc>): number | null;
94
+ export type HistoryCoverage = {
96
95
  actualCount: number;
97
96
  expectedCount: number;
98
97
  ratio: number;
@@ -101,11 +100,10 @@ type HistoryCoverage = {
101
100
  * implies for [fromMs, toMs). Expected comes from the request, never from the
102
101
  * first-to-last point span, so leading and trailing dropouts lower the ratio
103
102
  * instead of hiding. */
104
- declare function historyCoverage(points: ReadonlyArray<HistoryPoint>, periodMinutes: number, fromMs: number, toMs: number): HistoryCoverage;
105
- declare function historyGaps(history: History, toleranceFactor?: number): Array<[number, number]>;
106
- type TrendSeries = "temperature" | "pressure";
107
- declare function windowPoints(points: ReadonlyArray<HistoryPoint>, hours?: number): ReadonlyArray<HistoryPoint>;
108
- declare function compareWindow(points: ReadonlyArray<HistoryPoint>, offsetDays: number, windowHours?: number): HistoryPoint[] | null;
109
- declare function compareTracePoints(comparePoints: ReadonlyArray<HistoryPoint>, scales: ChartScales, offsetDays: number): string;
110
- //#endregion
111
- export { CHART_FALLBACK_WIDTH, ChartFrame, ChartScaleOptions, ChartScales, ChartTick, DAILY_PATTERN_DEFAULT_SLOT_MINUTES, DailyPatternSlot, HistoryCoverage, METEOROLOGICAL_SEASON_MONTHS, RoseSector, TickAnchor, TrendSeries, Vane, WindRoseSummary, averagePoints, bandPoints, chartFrame, chartScales, compareTracePoints, compareWindow, dailyPattern, favorableShare, filterByMonth, filterByTimeOfDay, historyCoverage, historyGaps, meanDirectionDeg$1 as meanDirectionDeg, measuredChartWidth, nearestIndex, speedBand, thinVanes, tickAnchor, vanePath, vaneTicks, windRose, windowPoints };
103
+ export declare function historyCoverage(points: ReadonlyArray<HistoryPoint>, periodMinutes: number, fromMs: number, toMs: number): HistoryCoverage;
104
+ export declare function historyGaps(history: History, toleranceFactor?: number): Array<[number, number]>;
105
+ export type TrendSeries = "temperature" | "pressure";
106
+ export declare function windowPoints(points: ReadonlyArray<HistoryPoint>, hours?: number): ReadonlyArray<HistoryPoint>;
107
+ export declare function compareWindow(points: ReadonlyArray<HistoryPoint>, offsetDays: number, windowHours?: number): HistoryPoint[] | null;
108
+ export declare function compareTracePoints(comparePoints: ReadonlyArray<HistoryPoint>, scales: ChartScales, offsetDays: number): string;
109
+ export { meanDirectionDeg$1 as meanDirectionDeg };
package/dist/geometry.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { KMH_PER_MPS, isCalm, normalizeDegrees, radians } from "./derive.js";
2
2
  import { componentsToWind, inDirectionArcs, meanDirectionDeg, windToComponents } from "@azohra/meteo.core";
3
- //#region src/geometry.ts
3
+ // src/geometry.ts
4
4
  const CHART_FALLBACK_WIDTH = 360;
5
5
  const CHART_AXIS_GUTTER = 46;
6
6
  function measuredChartWidth(measured) {
@@ -380,5 +380,4 @@ function compareTracePoints(comparePoints, scales, offsetDays) {
380
380
  const shiftMs = offsetDays * DAY_MS;
381
381
  return comparePoints.map((point) => coordinate(scales.xAtMs(Date.parse(point.observedAt) + shiftMs), scales.yAt(point.windAvgMps))).join(" ");
382
382
  }
383
- //#endregion
384
383
  export { CHART_FALLBACK_WIDTH, DAILY_PATTERN_DEFAULT_SLOT_MINUTES, HISTORY_GAP_TOLERANCE_FACTOR, METEOROLOGICAL_SEASON_MONTHS, averagePoints, bandPoints, chartFrame, chartScales, chartScalesOf, compareTracePoints, compareWindow, dailyPattern, favorableShare, filterByMonth, filterByTimeOfDay, historyCoverage, historyGaps, isCalmHistory, meanDirectionDeg$1 as meanDirectionDeg, meanDirectionDegOf, measuredChartWidth, nearestIndex, speedBand, stretchFrame, thinVanes, thinVanesOf, tickAnchor, tracePointsOf, trendRuns, trendSeriesPad, trendValueOf, valueScale, vanePath, vaneTicks, vectorMeanWind, windRose, windowPoints };
@@ -1,22 +1,21 @@
1
1
  import { HistoryPoint } from "./contract.js";
2
2
  import { SpeedUnit } from "./derive.js";
3
3
  import { DirectionArc } from "@azohra/meteo.core";
4
- //#region src/instruments.d.ts
5
- declare const DIAL_SIZE = 160;
6
- declare const DIAL_CENTRE: number;
7
- declare const DIAL_RING_RADIUS = 70;
8
- declare const DIAL_TICK_INNER = 64;
9
- declare const DIAL_CARDINAL_TICK_INNER = 58;
10
- declare const DIAL_LETTER_RADIUS = 46;
11
- declare const DIAL_HUB_RADIUS = 36;
12
- declare const DIAL_COUNTERWEIGHT_RADIUS = 4.5;
13
- declare const DIAL_COUNTERWEIGHT_REACH = 46;
14
- declare const DIAL_MIN_MAX_MPS: number;
15
- declare function dialPolar(bearingDeg: number, radius: number): readonly [number, number];
16
- declare function dialNeedlePoints(fromDeg: number): string;
17
- declare function dialSpeedArcPath(fraction: number): string;
18
- declare function dialScaleMaxMps(windAvgMps: number | null, windGustMps: number | null, unit: SpeedUnit): number;
19
- declare const DIAL_CARDINALS: readonly [{
4
+ export declare const DIAL_SIZE = 160;
5
+ export declare const DIAL_CENTRE: number;
6
+ export declare const DIAL_RING_RADIUS = 70;
7
+ export declare const DIAL_TICK_INNER = 64;
8
+ export declare const DIAL_CARDINAL_TICK_INNER = 58;
9
+ export declare const DIAL_LETTER_RADIUS = 46;
10
+ export declare const DIAL_HUB_RADIUS = 36;
11
+ export declare const DIAL_COUNTERWEIGHT_RADIUS = 4.5;
12
+ export declare const DIAL_COUNTERWEIGHT_REACH = 46;
13
+ export declare const DIAL_MIN_MAX_MPS: number;
14
+ export declare function dialPolar(bearingDeg: number, radius: number): readonly [number, number];
15
+ export declare function dialNeedlePoints(fromDeg: number): string;
16
+ export declare function dialSpeedArcPath(fraction: number): string;
17
+ export declare function dialScaleMaxMps(windAvgMps: number | null, windGustMps: number | null, unit: SpeedUnit): number;
18
+ export declare const DIAL_CARDINALS: readonly [{
20
19
  readonly bearing: 0;
21
20
  readonly letter: "N";
22
21
  }, {
@@ -29,24 +28,24 @@ declare const DIAL_CARDINALS: readonly [{
29
28
  readonly bearing: 270;
30
29
  readonly letter: "W";
31
30
  }];
32
- declare const ROSE_SIZE = 190;
33
- declare const ROSE_CENTRE: number;
34
- declare const ROSE_MAX_RADIUS = 70;
35
- declare const ROSE_FAVORABLE_RING_RADIUS = 75;
36
- declare const ROSE_HUB_RADIUS = 16;
37
- declare const ROSE_HUB_DOT_RADIUS = 3;
38
- declare const ROSE_LETTER_RADIUS = 82;
39
- declare const ROSE_TICK_REACH = 4;
40
- declare const ROSE_PETAL_FILL = 0.82;
41
- declare function rosePolar(bearingDeg: number, radius: number): readonly [number, number];
42
- declare function rosePetalPath(bearingDeg: number, radius: number, halfWidthDeg: number): string;
31
+ export declare const ROSE_SIZE = 190;
32
+ export declare const ROSE_CENTRE: number;
33
+ export declare const ROSE_MAX_RADIUS = 70;
34
+ export declare const ROSE_FAVORABLE_RING_RADIUS = 75;
35
+ export declare const ROSE_HUB_RADIUS = 16;
36
+ export declare const ROSE_HUB_DOT_RADIUS = 3;
37
+ export declare const ROSE_LETTER_RADIUS = 82;
38
+ export declare const ROSE_TICK_REACH = 4;
39
+ export declare const ROSE_PETAL_FILL = 0.82;
40
+ export declare function rosePolar(bearingDeg: number, radius: number): readonly [number, number];
41
+ export declare function rosePetalPath(bearingDeg: number, radius: number, halfWidthDeg: number): string;
43
42
  /** One radial slice of a petal — a stacked wedge's band segment; the petal
44
43
  * itself is the slice from the hub out. */
45
- declare function roseBandPath(bearingDeg: number, innerRadius: number, outerRadius: number, halfWidthDeg: number): string;
44
+ export declare function roseBandPath(bearingDeg: number, innerRadius: number, outerRadius: number, halfWidthDeg: number): string;
46
45
  /** The rose ring's arc input; the shape is core's `DirectionArc`. */
47
- type FavorableDirection = DirectionArc;
48
- declare function roseRingArcPath(sector: FavorableDirection): string;
49
- declare const ROSE_CARDINAL_LETTERS: readonly [{
46
+ export type FavorableDirection = DirectionArc;
47
+ export declare function roseRingArcPath(sector: FavorableDirection): string;
48
+ export declare const ROSE_CARDINAL_LETTERS: readonly [{
50
49
  readonly bearing: 0;
51
50
  readonly letter: "N";
52
51
  }, {
@@ -59,19 +58,17 @@ declare const ROSE_CARDINAL_LETTERS: readonly [{
59
58
  readonly bearing: 270;
60
59
  readonly letter: "W";
61
60
  }];
62
- declare const ROSE_INTERCARDINAL_BEARINGS: readonly [45, 135, 225, 315];
63
- declare const SPARKLINE_EDGE_INSET = 1;
64
- declare const SPARKLINE_MAX_PADDING = 1.1;
65
- declare function sparklineScale(points: ReadonlyArray<HistoryPoint>, width: number, height: number): {
61
+ export declare const ROSE_INTERCARDINAL_BEARINGS: readonly [45, 135, 225, 315];
62
+ export declare const SPARKLINE_EDGE_INSET = 1;
63
+ export declare const SPARKLINE_MAX_PADDING = 1.1;
64
+ export declare function sparklineScale(points: ReadonlyArray<HistoryPoint>, width: number, height: number): {
66
65
  scaleMax: number;
67
66
  xAt(ms: number): number;
68
67
  yAt(speedMps: number): number;
69
68
  };
70
- type HistoryRun = {
69
+ export type HistoryRun = {
71
70
  startedAt: string;
72
71
  points: HistoryPoint[];
73
72
  };
74
- declare function historyRuns(points: ReadonlyArray<HistoryPoint>, periodMinutes: number): HistoryRun[];
75
- declare function bandStrips(runs: ReadonlyArray<HistoryRun>): HistoryRun[];
76
- //#endregion
77
- export { DIAL_CARDINALS, DIAL_CARDINAL_TICK_INNER, DIAL_CENTRE, DIAL_COUNTERWEIGHT_RADIUS, DIAL_COUNTERWEIGHT_REACH, DIAL_HUB_RADIUS, DIAL_LETTER_RADIUS, DIAL_MIN_MAX_MPS, DIAL_RING_RADIUS, DIAL_SIZE, DIAL_TICK_INNER, FavorableDirection, HistoryRun, ROSE_CARDINAL_LETTERS, ROSE_CENTRE, ROSE_FAVORABLE_RING_RADIUS, ROSE_HUB_DOT_RADIUS, ROSE_HUB_RADIUS, ROSE_INTERCARDINAL_BEARINGS, ROSE_LETTER_RADIUS, ROSE_MAX_RADIUS, ROSE_PETAL_FILL, ROSE_SIZE, ROSE_TICK_REACH, SPARKLINE_EDGE_INSET, SPARKLINE_MAX_PADDING, bandStrips, dialNeedlePoints, dialPolar, dialScaleMaxMps, dialSpeedArcPath, historyRuns, roseBandPath, rosePetalPath, rosePolar, roseRingArcPath, sparklineScale };
73
+ export declare function historyRuns(points: ReadonlyArray<HistoryPoint>, periodMinutes: number): HistoryRun[];
74
+ export declare function bandStrips(runs: ReadonlyArray<HistoryRun>): HistoryRun[];
@@ -1,6 +1,6 @@
1
1
  import { COMPASS_POINTS, KMH_PER_MPS, normalizeDegrees, radians, speedToMps } from "./derive.js";
2
2
  import { HISTORY_GAP_TOLERANCE_FACTOR } from "./geometry.js";
3
- //#region src/instruments.ts
3
+ // src/instruments.ts
4
4
  const DIAL_SIZE = 160;
5
5
  const DIAL_CENTRE = 80;
6
6
  const DIAL_RING_RADIUS = 70;
@@ -182,5 +182,4 @@ function bandStrips(runs) {
182
182
  }
183
183
  return strips;
184
184
  }
185
- //#endregion
186
185
  export { DIAL_CARDINALS, DIAL_CARDINAL_TICK_INNER, DIAL_CENTRE, DIAL_COUNTERWEIGHT_RADIUS, DIAL_COUNTERWEIGHT_REACH, DIAL_HUB_RADIUS, DIAL_LETTER_RADIUS, DIAL_MIN_MAX_MPS, DIAL_RING_RADIUS, DIAL_SIZE, DIAL_TICK_INNER, ROSE_CARDINAL_LETTERS, ROSE_CENTRE, ROSE_FAVORABLE_RING_RADIUS, ROSE_HUB_DOT_RADIUS, ROSE_HUB_RADIUS, ROSE_INTERCARDINAL_BEARINGS, ROSE_LETTER_RADIUS, ROSE_MAX_RADIUS, ROSE_PETAL_FILL, ROSE_SIZE, ROSE_TICK_REACH, SPARKLINE_EDGE_INSET, SPARKLINE_MAX_PADDING, bandStrips, dialNeedlePoints, dialPolar, dialRingArcPath, dialScaleMaxMps, dialSpeedArcPath, historyRuns, roseBandPath, rosePetalPath, rosePolar, roseRingArcPath, sparklineScale };
@@ -1,13 +1,10 @@
1
1
  import { StationCurrent, StationFeed } from "./contract.js";
2
- //#region src/merge-current.d.ts
3
- type MergeResult = {
2
+ export type MergeResult = {
4
3
  feed: StationFeed;
5
4
  merged: boolean;
6
5
  };
7
- declare function mergeCurrent(feed: StationFeed, current: StationCurrent): MergeResult;
8
- declare function foldCurrent(feed: StationFeed | null, feedReceivedAtMs: number | null, current: StationCurrent | null, currentReceivedAtMs: number | null): {
6
+ export declare function mergeCurrent(feed: StationFeed, current: StationCurrent): MergeResult;
7
+ export declare function foldCurrent(feed: StationFeed | null, feedReceivedAtMs: number | null, current: StationCurrent | null, currentReceivedAtMs: number | null): {
9
8
  feed: StationFeed | null;
10
9
  receivedAtMs: number | null;
11
- };
12
- //#endregion
13
- export { MergeResult, foldCurrent, mergeCurrent };
10
+ };
@@ -1,4 +1,4 @@
1
- //#region src/merge-current.ts
1
+ // src/merge-current.ts
2
2
  function preserveOmitted(incoming, prior) {
3
3
  if (prior == null) return incoming;
4
4
  return {
@@ -51,5 +51,4 @@ function foldCurrent(feed, feedReceivedAtMs, current, currentReceivedAtMs) {
51
51
  receivedAtMs: result.merged ? currentReceivedAtMs : feedReceivedAtMs
52
52
  };
53
53
  }
54
- //#endregion
55
54
  export { foldCurrent, mergeCurrent };
@@ -1,16 +1,13 @@
1
1
  import { Station } from "../../contract.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import "../../index.js";
4
- //#region src/react/components/AirExtremes.d.ts
5
4
  /** Derived atmo tiles from served history: the last completed night's low
6
5
  * (real astronomy — no coordinates, no tile) and the trailing pressure
7
6
  * delta. Nothing derivable, nothing rendered. */
8
- declare function AirExtremes({ station: stationProp, stationId, nowMs, strings: stringsProp }: {
7
+ export declare function AirExtremes({ station: stationProp, stationId, nowMs, strings: stringsProp }: {
9
8
  station?: Station;
10
9
  stationId?: string;
11
10
  /** Pinned in tests; defaults to the wall clock. */
12
11
  nowMs?: number;
13
12
  strings?: StationStringOverrides;
14
- }): import("react").ReactNode;
15
- //#endregion
16
- export { AirExtremes };
13
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { airExtremesScene } from "../../scene/air-extremes.js";
4
4
  import { renderOptional } from "./SceneTree.js";
5
5
  import { resolveStation, useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/AirExtremes.tsx
6
+ // src/react/components/AirExtremes.tsx
7
7
  /** Derived atmo tiles from served history: the last completed night's low
8
8
  * (real astronomy — no coordinates, no tile) and the trailing pressure
9
9
  * delta. Nothing derivable, nothing rendered. */
@@ -17,5 +17,4 @@ function AirExtremes({ station: stationProp, stationId, nowMs, strings: stringsP
17
17
  words
18
18
  }));
19
19
  }
20
- //#endregion
21
20
  export { AirExtremes };
@@ -1,11 +1,8 @@
1
1
  import { Station } from "../../contract.js";
2
2
  import { FormatTime, StationStringOverrides } from "../../strings.js";
3
3
  import "../../index.js";
4
- //#region src/react/components/AirMatrix.d.ts
5
- declare function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: formatTimeProp }: {
4
+ export declare function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: formatTimeProp }: {
6
5
  stations?: readonly Station[];
7
6
  strings?: StationStringOverrides;
8
7
  formatTime?: FormatTime;
9
- }): import("react").JSX.Element | null;
10
- //#endregion
11
- export { AirMatrix };
8
+ }): import("react").JSX.Element | null;
@@ -5,7 +5,7 @@ import { renderChildren } from "./SceneTree.js";
5
5
  import { requireResolved, useStationFeedContext } from "./StationFeedProvider.js";
6
6
  import { useId, useState } from "react";
7
7
  import { jsx, jsxs } from "react/jsx-runtime";
8
- //#region src/react/components/AirMatrix.tsx
8
+ // src/react/components/AirMatrix.tsx
9
9
  function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: formatTimeProp }) {
10
10
  const context = useStationFeedContext();
11
11
  const stations = requireResolved("AirMatrix", "stations", stationsProp ?? context?.feed?.stations);
@@ -45,5 +45,4 @@ function AirMatrix({ stations: stationsProp, strings: stringsProp, formatTime: f
45
45
  })]
46
46
  });
47
47
  }
48
- //#endregion
49
48
  export { AirMatrix };
@@ -3,10 +3,9 @@ import { SpeedThresholds } from "../../derive.js";
3
3
  import { StationStringOverrides } from "../../strings.js";
4
4
  import { FavorableDirection } from "../../instruments.js";
5
5
  import "../../index.js";
6
- //#region src/react/components/ClimatologyDailyPattern.d.ts
7
6
  /** The cube's typical day through the daily-pattern drawing, month-filtered
8
7
  * client-side. The host owns the document and the filters. */
9
- declare function ClimatologyDailyPattern({ document, months, favorableDirections: favorableDirectionsProp, thresholds: thresholdsProp, unit: unitProp, plotHeight, stationName, strings: stringsProp }: {
8
+ export declare function ClimatologyDailyPattern({ document, months, favorableDirections: favorableDirectionsProp, thresholds: thresholdsProp, unit: unitProp, plotHeight, stationName, strings: stringsProp }: {
10
9
  document: StationClimatology | null | undefined;
11
10
  months?: ReadonlyArray<number>;
12
11
  favorableDirections?: FavorableDirection[] | null;
@@ -15,6 +14,4 @@ declare function ClimatologyDailyPattern({ document, months, favorableDirections
15
14
  plotHeight?: number;
16
15
  stationName?: string;
17
16
  strings?: StationStringOverrides;
18
- }): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
19
- //#endregion
20
- export { ClimatologyDailyPattern };
17
+ }): string | number | bigint | boolean | import("react").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | Iterable<import("react").ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
@@ -6,7 +6,7 @@ import { renderChildren } from "./SceneTree.js";
6
6
  import { useStationFeedContext } from "./StationFeedProvider.js";
7
7
  import { useEffect, useId, useRef, useState } from "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
- //#region src/react/components/ClimatologyDailyPattern.tsx
9
+ // src/react/components/ClimatologyDailyPattern.tsx
10
10
  /** The cube's typical day through the daily-pattern drawing, month-filtered
11
11
  * client-side. The host owns the document and the filters. */
12
12
  function ClimatologyDailyPattern({ document, months, favorableDirections: favorableDirectionsProp, thresholds: thresholdsProp, unit: unitProp, plotHeight, stationName, strings: stringsProp }) {
@@ -61,5 +61,4 @@ function ClimatologyDailyPattern({ document, months, favorableDirections: favora
61
61
  }))
62
62
  });
63
63
  }
64
- //#endregion
65
64
  export { ClimatologyDailyPattern };
@@ -2,17 +2,14 @@ import { StationClimatology } from "../../contract-climatology.js";
2
2
  import { StationStringOverrides } from "../../strings.js";
3
3
  import { FavorableDirection } from "../../instruments.js";
4
4
  import "../../index.js";
5
- //#region src/react/components/ClimatologyRose.d.ts
6
5
  /** The whole archive as a stacked rose: the cube's sectors, each wedge split
7
6
  * by the document's own thresholds, with the honesty captions beneath. The
8
7
  * host owns the document (a fetch-once store) and the filters. */
9
- declare function ClimatologyRose({ document, months, slots, favorableDirections: favorableDirectionsProp, stationName, strings: stringsProp }: {
8
+ export declare function ClimatologyRose({ document, months, slots, favorableDirections: favorableDirectionsProp, stationName, strings: stringsProp }: {
10
9
  document: StationClimatology | null | undefined;
11
10
  months?: ReadonlyArray<number>;
12
11
  slots?: ReadonlyArray<number>;
13
12
  favorableDirections?: FavorableDirection[] | null;
14
13
  stationName?: string;
15
14
  strings?: StationStringOverrides;
16
- }): import("react").ReactNode;
17
- //#endregion
18
- export { ClimatologyRose };
15
+ }): import("react").ReactNode;
@@ -3,7 +3,7 @@ import { resolveDisplay } from "../../display.js";
3
3
  import { climatologyRoseScene } from "../../scene/climatology-rose.js";
4
4
  import { renderScene } from "./SceneTree.js";
5
5
  import { useStationFeedContext } from "./StationFeedProvider.js";
6
- //#region src/react/components/ClimatologyRose.tsx
6
+ // src/react/components/ClimatologyRose.tsx
7
7
  /** The whole archive as a stacked rose: the cube's sectors, each wedge split
8
8
  * by the document's own thresholds, with the honesty captions beneath. The
9
9
  * host owns the document (a fetch-once store) and the filters. */
@@ -24,5 +24,4 @@ function ClimatologyRose({ document, months, slots, favorableDirections: favorab
24
24
  words
25
25
  }));
26
26
  }
27
- //#endregion
28
27
  export { ClimatologyRose };