@azohra/meteo.station 0.7.0 → 0.7.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/dist/air.d.ts +4 -7
- package/dist/air.js +1 -2
- package/dist/client/climatology.d.ts +5 -8
- package/dist/client/climatology.js +1 -2
- package/dist/client/history.d.ts +14 -17
- package/dist/client/history.js +2 -3
- package/dist/client/index.js +1 -1
- package/dist/client/live.d.ts +10 -12
- package/dist/client/live.js +1 -2
- package/dist/client/poll.d.ts +9 -12
- package/dist/client/poll.js +1 -2
- package/dist/client/stores.d.ts +9 -11
- package/dist/client/stores.js +2 -3
- package/dist/client/ticker.d.ts +1 -4
- package/dist/client/ticker.js +1 -2
- package/dist/climatology.d.ts +13 -15
- package/dist/climatology.js +1 -2
- package/dist/connectivity.d.ts +7 -10
- package/dist/connectivity.js +1 -2
- package/dist/contract-climatology.d.ts +11 -14
- package/dist/contract-climatology.js +1 -2
- package/dist/contract.d.ts +45 -48
- package/dist/contract.js +1 -2
- package/dist/derive.d.ts +24 -26
- package/dist/derive.js +1 -2
- package/dist/display.d.ts +7 -10
- package/dist/display.js +1 -2
- package/dist/elements/elements/AirExtremesElement.d.ts +2 -5
- package/dist/elements/elements/AirExtremesElement.js +1 -2
- package/dist/elements/elements/AirMatrixElement.d.ts +2 -5
- package/dist/elements/elements/AirMatrixElement.js +1 -2
- package/dist/elements/elements/ClimatologyDailyPatternElement.d.ts +2 -5
- package/dist/elements/elements/ClimatologyDailyPatternElement.js +2 -3
- package/dist/elements/elements/ClimatologyRoseElement.d.ts +2 -5
- package/dist/elements/elements/ClimatologyRoseElement.js +2 -3
- package/dist/elements/elements/CompassFanElement.d.ts +2 -5
- package/dist/elements/elements/CompassFanElement.js +1 -2
- package/dist/elements/elements/CurrentConditionsElement.d.ts +2 -5
- package/dist/elements/elements/CurrentConditionsElement.js +1 -2
- package/dist/elements/elements/DailyPatternElement.d.ts +2 -5
- package/dist/elements/elements/DailyPatternElement.js +2 -3
- package/dist/elements/elements/DialElement.d.ts +2 -5
- package/dist/elements/elements/DialElement.js +1 -2
- package/dist/elements/elements/FavorableShareElement.d.ts +2 -5
- package/dist/elements/elements/FavorableShareElement.js +1 -2
- package/dist/elements/elements/FreshnessBadgeElement.d.ts +2 -5
- package/dist/elements/elements/FreshnessBadgeElement.js +1 -2
- package/dist/elements/elements/RecentSummariesElement.d.ts +2 -5
- package/dist/elements/elements/RecentSummariesElement.js +1 -2
- package/dist/elements/elements/SparklineElement.d.ts +2 -5
- package/dist/elements/elements/SparklineElement.js +1 -2
- package/dist/elements/elements/StationCardElement.d.ts +6 -8
- package/dist/elements/elements/StationCardElement.js +4 -5
- package/dist/elements/elements/StationFeedElement.d.ts +2 -5
- package/dist/elements/elements/StationFeedElement.js +3 -4
- package/dist/elements/elements/StationStripElement.d.ts +2 -5
- package/dist/elements/elements/StationStripElement.js +1 -2
- package/dist/elements/elements/StationTableElement.d.ts +3 -6
- package/dist/elements/elements/StationTableElement.js +2 -3
- package/dist/elements/elements/TrendChartElement.d.ts +2 -5
- package/dist/elements/elements/TrendChartElement.js +2 -3
- package/dist/elements/elements/WindArrowElement.d.ts +2 -5
- package/dist/elements/elements/WindArrowElement.js +1 -2
- package/dist/elements/elements/WindHistoryChartElement.d.ts +2 -5
- package/dist/elements/elements/WindHistoryChartElement.js +4 -5
- package/dist/elements/elements/WindRoseElement.d.ts +2 -5
- package/dist/elements/elements/WindRoseElement.js +1 -2
- package/dist/elements/elements/atoms.d.ts +9 -11
- package/dist/elements/elements/atoms.js +2 -3
- package/dist/elements/index.d.ts +4 -6
- package/dist/elements/index.js +1 -2
- package/dist/elements/lib/ambient.d.ts +2 -5
- package/dist/elements/lib/ambient.js +1 -2
- package/dist/elements/lib/attributes.js +1 -2
- package/dist/elements/lib/base.d.ts +3 -6
- package/dist/elements/lib/base.js +2 -3
- package/dist/elements/lib/context.js +1 -2
- package/dist/elements/lib/fragments.js +2 -3
- package/dist/elements/lib/h.js +1 -2
- package/dist/elements/lib/pinned-cursor.js +1 -2
- package/dist/elements/lib/render.js +1 -2
- package/dist/elements/register.js +1 -2
- package/dist/endpoints.d.ts +6 -9
- package/dist/endpoints.js +6 -3
- package/dist/fixtures.d.ts +7 -10
- package/dist/fixtures.js +1 -2
- package/dist/format.d.ts +11 -14
- package/dist/format.js +1 -2
- package/dist/geometry.d.ts +36 -39
- package/dist/geometry.js +7 -8
- package/dist/index.d.ts +6 -6
- package/dist/index.js +2 -2
- package/dist/instruments.d.ts +37 -40
- package/dist/instruments.js +1 -2
- package/dist/merge-current.d.ts +4 -7
- package/dist/merge-current.js +1 -2
- package/dist/react/components/AirExtremes.d.ts +2 -5
- package/dist/react/components/AirExtremes.js +1 -2
- package/dist/react/components/AirMatrix.d.ts +2 -5
- package/dist/react/components/AirMatrix.js +1 -2
- package/dist/react/components/ClimatologyDailyPattern.d.ts +2 -5
- package/dist/react/components/ClimatologyDailyPattern.js +1 -2
- package/dist/react/components/ClimatologyRose.d.ts +2 -5
- package/dist/react/components/ClimatologyRose.js +1 -2
- package/dist/react/components/CompassFan.d.ts +2 -5
- package/dist/react/components/CompassFan.js +1 -2
- package/dist/react/components/CurrentConditions.d.ts +2 -5
- package/dist/react/components/CurrentConditions.js +3 -4
- package/dist/react/components/DailyPattern.d.ts +2 -5
- package/dist/react/components/DailyPattern.js +2 -3
- package/dist/react/components/Dial.d.ts +2 -5
- package/dist/react/components/Dial.js +3 -4
- package/dist/react/components/FavorableShare.d.ts +2 -5
- package/dist/react/components/FavorableShare.js +1 -2
- package/dist/react/components/FreshnessBadge.d.ts +2 -5
- package/dist/react/components/FreshnessBadge.js +1 -2
- package/dist/react/components/Readout.d.ts +2 -5
- package/dist/react/components/Readout.js +1 -2
- package/dist/react/components/RecentSummaries.d.ts +2 -5
- package/dist/react/components/RecentSummaries.js +1 -2
- package/dist/react/components/SceneTree.js +1 -2
- package/dist/react/components/Sparkline.d.ts +2 -5
- package/dist/react/components/Sparkline.js +2 -3
- package/dist/react/components/StationCard.d.ts +6 -8
- package/dist/react/components/StationCard.js +4 -5
- package/dist/react/components/StationFeedProvider.d.ts +3 -6
- package/dist/react/components/StationFeedProvider.js +2 -3
- package/dist/react/components/StationStrip.d.ts +2 -5
- package/dist/react/components/StationStrip.js +3 -4
- package/dist/react/components/StationTable.d.ts +3 -6
- package/dist/react/components/StationTable.js +4 -5
- package/dist/react/components/TrendChart.d.ts +3 -6
- package/dist/react/components/TrendChart.js +3 -4
- package/dist/react/components/WindArrow.d.ts +2 -5
- package/dist/react/components/WindArrow.js +1 -2
- package/dist/react/components/WindHistoryChart.d.ts +2 -5
- package/dist/react/components/WindHistoryChart.js +4 -5
- package/dist/react/components/WindRose.d.ts +2 -5
- package/dist/react/components/WindRose.js +1 -2
- package/dist/react/components/WindSampleStrip.d.ts +2 -5
- package/dist/react/components/WindSampleStrip.js +4 -5
- package/dist/react/components/atoms.d.ts +9 -11
- package/dist/react/components/atoms.js +3 -4
- package/dist/react/hooks/useFreshness.d.ts +1 -4
- package/dist/react/hooks/useFreshness.js +2 -3
- package/dist/react/hooks/useMeasuredChartWidth.d.ts +2 -5
- package/dist/react/hooks/useMeasuredChartWidth.js +1 -2
- package/dist/react/hooks/usePolledJson.js +1 -2
- package/dist/react/hooks/useStation.d.ts +2 -5
- package/dist/react/hooks/useStation.js +1 -2
- package/dist/react/hooks/useStationClimatology.d.ts +2 -5
- package/dist/react/hooks/useStationClimatology.js +2 -3
- package/dist/react/hooks/useStationCurrent.d.ts +2 -5
- package/dist/react/hooks/useStationCurrent.js +1 -2
- package/dist/react/hooks/useStationFeed.d.ts +2 -5
- package/dist/react/hooks/useStationFeed.js +1 -2
- package/dist/react/hooks/useStationLive.d.ts +2 -5
- package/dist/react/hooks/useStationLive.js +1 -2
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +3 -3
- package/dist/react/lib/cells.js +1 -2
- package/dist/react/lib/use-pinned-cursor.js +1 -2
- package/dist/samples.d.ts +8 -11
- package/dist/samples.js +1 -2
- package/dist/scene/air-extremes.js +1 -2
- package/dist/scene/air-matrix.js +1 -2
- package/dist/scene/atoms.d.ts +2 -2
- package/dist/scene/atoms.js +2 -3
- package/dist/scene/card.js +2 -3
- package/dist/scene/cells.d.ts +2 -2
- package/dist/scene/cells.js +2 -3
- package/dist/scene/chart.d.ts +2 -5
- package/dist/scene/chart.js +1 -2
- package/dist/scene/climatology-pattern.d.ts +2 -2
- package/dist/scene/climatology-pattern.js +2 -3
- package/dist/scene/climatology-rose.d.ts +2 -2
- package/dist/scene/climatology-rose.js +2 -3
- package/dist/scene/compass-fan.d.ts +2 -2
- package/dist/scene/compass-fan.js +2 -3
- package/dist/scene/current.d.ts +2 -2
- package/dist/scene/current.js +3 -4
- package/dist/scene/daily-pattern.d.ts +2 -2
- package/dist/scene/daily-pattern.js +2 -3
- package/dist/scene/dial-parts.js +1 -2
- package/dist/scene/dial.d.ts +2 -2
- package/dist/scene/dial.js +3 -4
- package/dist/scene/favorable-share.d.ts +2 -2
- package/dist/scene/favorable-share.js +1 -2
- package/dist/scene/glyphs.js +1 -2
- package/dist/scene/node.js +1 -2
- package/dist/scene/recent-summaries.d.ts +2 -2
- package/dist/scene/recent-summaries.js +2 -3
- package/dist/scene/rose.d.ts +2 -2
- package/dist/scene/rose.js +1 -2
- package/dist/scene/sample-strip.d.ts +2 -2
- package/dist/scene/sample-strip.js +2 -3
- package/dist/scene/sparkline.js +2 -3
- package/dist/scene/strip.js +3 -4
- package/dist/scene/table.js +3 -4
- package/dist/scene/trend.d.ts +2 -2
- package/dist/scene/trend.js +1 -2
- package/dist/scene/wind-history.d.ts +2 -2
- package/dist/scene/wind-history.js +3 -4
- package/dist/scene/wind-plot.d.ts +1 -1
- package/dist/scene/wind-plot.js +2 -3
- package/dist/server/adapter.d.ts +7 -10
- package/dist/server/adapter.js +1 -2
- package/dist/server/adapters/campbell.d.ts +12 -14
- package/dist/server/adapters/campbell.js +2 -3
- package/dist/server/adapters/ecowitt.d.ts +5 -8
- package/dist/server/adapters/ecowitt.js +2 -3
- package/dist/server/adapters/tempest.d.ts +5 -8
- package/dist/server/adapters/tempest.js +2 -3
- package/dist/server/adapters/windnerd-climatology.d.ts +6 -9
- package/dist/server/adapters/windnerd-climatology.js +3 -4
- package/dist/server/adapters/windnerd-live.d.ts +3 -6
- package/dist/server/adapters/windnerd-live.js +1 -2
- package/dist/server/adapters/windnerd.d.ts +24 -27
- package/dist/server/adapters/windnerd.js +7 -8
- package/dist/server/config.d.ts +18 -20
- package/dist/server/config.js +1 -2
- package/dist/server/environment.d.ts +21 -23
- package/dist/server/environment.js +14 -15
- package/dist/server/feed.d.ts +20 -22
- package/dist/server/feed.js +3 -4
- package/dist/server/handler.d.ts +5 -8
- package/dist/server/handler.js +3 -4
- package/dist/server/hologram.d.ts +9 -12
- package/dist/server/hologram.js +1 -2
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +9 -9
- package/dist/server/live.d.ts +2 -5
- package/dist/server/live.js +1 -2
- package/dist/sse.js +1 -2
- package/dist/strings.d.ts +8 -11
- package/dist/strings.js +1 -2
- package/dist/windnerd.d.ts +4 -7
- package/dist/windnerd.js +1 -2
- package/package.json +10 -10
package/dist/react/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { StationFeedProvider, useStationFeedContext } from "./components/StationFeedProvider.js";
|
|
3
2
|
import { AirMatrix } from "./components/AirMatrix.js";
|
|
4
3
|
import { BandChip, Direction, Gust, Lull, Pressure, Speed, Temperature, UpdatedAt } from "./components/atoms.js";
|
|
5
|
-
import { useFreshness } from "./hooks/useFreshness.js";
|
|
6
4
|
import { CurrentConditions } from "./components/CurrentConditions.js";
|
|
7
5
|
import { Dial } from "./components/Dial.js";
|
|
8
6
|
import { FavorableShare } from "./components/FavorableShare.js";
|
|
9
7
|
import { FreshnessBadge } from "./components/FreshnessBadge.js";
|
|
10
8
|
import { Sparkline } from "./components/Sparkline.js";
|
|
11
9
|
import { StationTable } from "./components/StationTable.js";
|
|
10
|
+
import { StationFeedProvider, useStationFeedContext } from "./components/StationFeedProvider.js";
|
|
12
11
|
import { StationStrip } from "./components/StationStrip.js";
|
|
13
12
|
import { TrendChart } from "./components/TrendChart.js";
|
|
14
13
|
import { WindArrow } from "./components/WindArrow.js";
|
|
@@ -19,11 +18,12 @@ import { RecentSummaries } from "./components/RecentSummaries.js";
|
|
|
19
18
|
import { ClimatologyRose } from "./components/ClimatologyRose.js";
|
|
20
19
|
import { DailyPattern } from "./components/DailyPattern.js";
|
|
21
20
|
import { Readout } from "./components/Readout.js";
|
|
22
|
-
import { useMeasuredChartWidth } from "./hooks/useMeasuredChartWidth.js";
|
|
23
21
|
import { WindHistoryChart } from "./components/WindHistoryChart.js";
|
|
24
22
|
import { WindRose } from "./components/WindRose.js";
|
|
25
23
|
import { WindSampleStrip } from "./components/WindSampleStrip.js";
|
|
26
24
|
import { StationCard, StationCardChart, StationCardHeader, StationCardInstrument, StationCardSummary } from "./components/StationCard.js";
|
|
25
|
+
import { useFreshness } from "./hooks/useFreshness.js";
|
|
26
|
+
import { useMeasuredChartWidth } from "./hooks/useMeasuredChartWidth.js";
|
|
27
27
|
import { useStation } from "./hooks/useStation.js";
|
|
28
28
|
import { useStationClimatology } from "./hooks/useStationClimatology.js";
|
|
29
29
|
import { useStationCurrent } from "./hooks/useStationCurrent.js";
|
package/dist/react/lib/cells.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { stationNameNode } from "../../scene/cells.js";
|
|
3
3
|
import { renderChild } from "../components/SceneTree.js";
|
|
4
|
-
|
|
4
|
+
// src/react/lib/cells.tsx
|
|
5
5
|
function StationNameLink({ station }) {
|
|
6
6
|
return renderChild(stationNameNode(station), 0);
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { StationNameLink };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { activeChartIndex, chartIndexAtClient, togglePinnedAt } from "../../scene/chart.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
|
|
4
|
+
// src/react/lib/use-pinned-cursor.ts
|
|
5
5
|
function usePinnedCursor(scene) {
|
|
6
6
|
const [pinnedAt, setPinnedAt] = useState(null);
|
|
7
7
|
const [previewIndex, setPreviewIndex] = useState(null);
|
|
@@ -28,5 +28,4 @@ function usePinnedCursor(scene) {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
//#endregion
|
|
32
31
|
export { usePinnedCursor };
|
package/dist/samples.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { LiveSample, LiveSamples } from "./contract.js";
|
|
2
2
|
import { ChartFrame, ChartScaleOptions, ChartScales, Vane } from "./geometry.js";
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
declare function
|
|
6
|
-
declare function
|
|
7
|
-
declare function
|
|
8
|
-
declare function
|
|
9
|
-
|
|
10
|
-
type SamplesSummary = {
|
|
3
|
+
export declare const SAMPLE_GAP_TOLERANCE_FACTOR = 2.5;
|
|
4
|
+
export declare function sampleRuns(samples: LiveSamples, toleranceFactor?: number): LiveSample[][];
|
|
5
|
+
export declare function sampleScales(samples: LiveSamples, frame: ChartFrame, options?: ChartScaleOptions): ChartScales;
|
|
6
|
+
export declare function samplePoints(run: ReadonlyArray<LiveSample>, scales: ChartScales): string;
|
|
7
|
+
export declare function sampleMeanDirectionDeg(samples: ReadonlyArray<LiveSample>): number | null;
|
|
8
|
+
export declare function thinSampleVanes(samples: ReadonlyArray<LiveSample>, target?: number): Vane[];
|
|
9
|
+
export type SamplesSummary = {
|
|
11
10
|
latest: LiveSample;
|
|
12
11
|
peakMps: number;
|
|
13
12
|
peakAt: string;
|
|
@@ -15,6 +14,4 @@ type SamplesSummary = {
|
|
|
15
14
|
meanDirectionDeg: number | null;
|
|
16
15
|
spanSeconds: number;
|
|
17
16
|
};
|
|
18
|
-
declare function samplesSummary(samples: LiveSamples): SamplesSummary | null;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { SAMPLE_GAP_TOLERANCE_FACTOR, SamplesSummary, sampleMeanDirectionDeg, samplePoints, sampleRuns, sampleScales, samplesSummary, thinSampleVanes };
|
|
17
|
+
export declare function samplesSummary(samples: LiveSamples): SamplesSummary | null;
|
package/dist/samples.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HISTORY_GAP_TOLERANCE_FACTOR, chartScalesOf, meanDirectionDegOf, thinVanesOf, tracePointsOf } from "./geometry.js";
|
|
2
|
-
|
|
2
|
+
// src/samples.ts
|
|
3
3
|
const speedOf = (sample) => sample.windMps;
|
|
4
4
|
const directionOf = (sample) => sample.windDirectionDeg;
|
|
5
5
|
const SAMPLE_GAP_TOLERANCE_FACTOR = HISTORY_GAP_TOLERANCE_FACTOR;
|
|
@@ -48,5 +48,4 @@ function samplesSummary(samples) {
|
|
|
48
48
|
spanSeconds: (Date.parse(latest.observedAt) - Date.parse(first.observedAt)) / 1e3
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
//#endregion
|
|
52
51
|
export { SAMPLE_GAP_TOLERANCE_FACTOR, sampleMeanDirectionDeg, samplePoints, sampleRuns, sampleScales, samplesSummary, thinSampleVanes };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { lastNightLowC, pressureDeltaHpa } from "../derive.js";
|
|
2
2
|
import { temperatureValue } from "../format.js";
|
|
3
3
|
import { el, keyed } from "./node.js";
|
|
4
|
-
|
|
4
|
+
// src/scene/air-extremes.ts
|
|
5
5
|
const AIR_EXTREMES_CLASS = "meteo-air-extremes";
|
|
6
6
|
const PRESSURE_DELTA_WINDOW_HOURS = 3;
|
|
7
7
|
/** Null without served history — the tiles are functions of it; each tile
|
|
@@ -23,5 +23,4 @@ function airExtremesScene(input) {
|
|
|
23
23
|
class: AIR_EXTREMES_CLASS
|
|
24
24
|
}, tiles);
|
|
25
25
|
}
|
|
26
|
-
//#endregion
|
|
27
26
|
export { AIR_EXTREMES_CLASS, airExtremesScene };
|
package/dist/scene/air-matrix.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { airRows, airSummary, lastStrikeWords } from "../air.js";
|
|
2
2
|
import { el, keyed } from "./node.js";
|
|
3
|
-
|
|
3
|
+
// src/scene/air-matrix.ts
|
|
4
4
|
/** The disclosure's own words, plus the panel it opens. The shell stays
|
|
5
5
|
* with each binding: the trigger owns expansion state and its handler. */
|
|
6
6
|
function airMatrixScene(input) {
|
|
@@ -54,5 +54,4 @@ function airMatrixScene(input) {
|
|
|
54
54
|
panel
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
//#endregion
|
|
58
57
|
export { airMatrixScene };
|
package/dist/scene/atoms.d.ts
CHANGED
package/dist/scene/atoms.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { compassDirection, isCalm, thresholdsToMps } from "../derive.js";
|
|
2
|
-
import { speedBand } from "../geometry.js";
|
|
3
2
|
import { readingAgeMs, roundSpeed, speedMpsOf, temperatureValue, updatedAtText } from "../format.js";
|
|
3
|
+
import { speedBand } from "../geometry.js";
|
|
4
4
|
import { inDirectionArcs } from "@azohra/meteo.core";
|
|
5
|
-
|
|
5
|
+
// src/scene/atoms.ts
|
|
6
6
|
const valueContent = (value, shown, unitWord) => value == null ? {
|
|
7
7
|
kind: "dash",
|
|
8
8
|
text: "—"
|
|
@@ -100,5 +100,4 @@ function bandChipScene(input) {
|
|
|
100
100
|
text: labels?.[band] ?? `${roundSpeed(reading.windAvgMps, unit)} ${words.speedUnits[unit]}`
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
//#endregion
|
|
104
103
|
export { bandChipScene, directionAtomScene, pressureAtomScene, speedAtomScene, temperatureAtomScene, updatedAtScene };
|
package/dist/scene/card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { summaryEntries } from "../format.js";
|
|
2
|
-
import { el, keyed } from "./node.js";
|
|
3
2
|
import { freshnessBadgeNode } from "./glyphs.js";
|
|
4
|
-
|
|
3
|
+
import { el, keyed } from "./node.js";
|
|
4
|
+
// src/scene/card.ts
|
|
5
5
|
const STATION_CARD_CLASS = "meteo-station-card";
|
|
6
6
|
function cardPartThresholds(own, card) {
|
|
7
7
|
return (own === void 0 ? card : own ?? void 0) ?? null;
|
|
@@ -24,5 +24,4 @@ function summaryNode(station, unit, words, formatTime) {
|
|
|
24
24
|
class: "meteo-summary"
|
|
25
25
|
}, summary.entries.map((entry) => keyed(entry.label, "div", { class: "meteo-summary-item" }, el("dt", { class: "meteo-microlabel" }, entry.label), el("dd", void 0, entry.value))));
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { STATION_CARD_CLASS, cardHeaderNode, cardPartThresholds, cardPartWiringError, summaryNode };
|
package/dist/scene/cells.d.ts
CHANGED
package/dist/scene/cells.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { directionCell } from "../format.js";
|
|
2
|
+
import { windArrowNode } from "./glyphs.js";
|
|
2
3
|
import { el } from "./node.js";
|
|
3
4
|
import { bandChipScene, directionAtomScene, updatedAtScene } from "./atoms.js";
|
|
4
|
-
|
|
5
|
-
//#region src/scene/cells.ts
|
|
5
|
+
// src/scene/cells.ts
|
|
6
6
|
/** The direction reading: an arrow plus its compass point, or the word for
|
|
7
7
|
* calm, or a dash — one spelling for both display bindings. */
|
|
8
8
|
function directionCellNodes(windAvgMps, windDirectionDeg, words) {
|
|
@@ -47,5 +47,4 @@ function bandChipNode(input) {
|
|
|
47
47
|
"data-band": scene.band
|
|
48
48
|
}, scene.text);
|
|
49
49
|
}
|
|
50
|
-
//#endregion
|
|
51
50
|
export { bandChipNode, directionAtomNode, directionCellNodes, stationNameNode, updatedAtNode, valueAtomNode };
|
package/dist/scene/chart.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { TickAnchor, measuredChartWidth, tickAnchor } from "../geometry.js";
|
|
2
|
-
|
|
3
|
-
type ReadoutPart = {
|
|
2
|
+
export type ReadoutPart = {
|
|
4
3
|
kind: "text";
|
|
5
4
|
text: string;
|
|
6
5
|
} | {
|
|
7
6
|
kind: "arrow";
|
|
8
7
|
deg: number;
|
|
9
|
-
};
|
|
10
|
-
//#endregion
|
|
11
|
-
export { ReadoutPart };
|
|
8
|
+
};
|
package/dist/scene/chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { measuredChartWidth, nearestIndex, tickAnchor } from "../geometry.js";
|
|
2
|
-
|
|
2
|
+
// src/scene/chart.ts
|
|
3
3
|
function pinnedIndexOf(points, pinnedAt) {
|
|
4
4
|
if (pinnedAt == null) return null;
|
|
5
5
|
const found = points.findIndex((point) => point.observedAt === pinnedAt);
|
|
@@ -19,5 +19,4 @@ function togglePinnedAt(current, observedAt) {
|
|
|
19
19
|
function readoutAriaLive(previewIndex) {
|
|
20
20
|
return previewIndex == null ? "polite" : "off";
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { activeChartIndex, chartIndexAtClient, measuredChartWidth, pinnedIndexOf, readoutAriaLive, tickAnchor, togglePinnedAt };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { climatologyCoverage, climatologyPattern } from "../climatology.js";
|
|
2
|
-
import { el } from "./node.js";
|
|
3
2
|
import { dailyPatternSlotsScene } from "./daily-pattern.js";
|
|
4
|
-
|
|
3
|
+
import { el } from "./node.js";
|
|
4
|
+
// src/scene/climatology-pattern.ts
|
|
5
5
|
const CLIMATOLOGY_PATTERN_CLASS = "meteo-climatology-daily-pattern";
|
|
6
6
|
/** Whether the cube has anything to draw — the bindings consult it to
|
|
7
7
|
* decide whether to keep a width observer alive. */
|
|
@@ -30,5 +30,4 @@ function climatologyPatternScene(input) {
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
//#endregion
|
|
34
33
|
export { CLIMATOLOGY_PATTERN_CLASS, climatologyPatternScene, hasClimatology };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { climatologyCoverage, climatologyFavorableShare, climatologyRose } from "../climatology.js";
|
|
2
|
-
import { el, keyed } from "./node.js";
|
|
3
2
|
import { windRoseScene } from "./rose.js";
|
|
4
|
-
|
|
3
|
+
import { el, keyed } from "./node.js";
|
|
4
|
+
// src/scene/climatology-rose.ts
|
|
5
5
|
const CLIMATOLOGY_ROSE_CLASS = "meteo-climatology-rose";
|
|
6
6
|
function climatologyRoseScene(input) {
|
|
7
7
|
const { document, favorableDirections, filters, stationName, words } = input;
|
|
@@ -26,5 +26,4 @@ function climatologyRoseScene(input) {
|
|
|
26
26
|
words
|
|
27
27
|
}, captions));
|
|
28
28
|
}
|
|
29
|
-
//#endregion
|
|
30
29
|
export { CLIMATOLOGY_ROSE_CLASS, climatologyRoseScene };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../contract.js";
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
2
|
+
import "../instruments.js";
|
|
3
|
+
import "../strings.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isCalm } from "../derive.js";
|
|
2
2
|
import { vanePath } from "../geometry.js";
|
|
3
3
|
import { dialPolar } from "../instruments.js";
|
|
4
|
-
import { el, keyed } from "./node.js";
|
|
5
4
|
import { dialHub, dialLetters, dialNeedle, dialRing, dialTicks, dialVerdictRing } from "./dial-parts.js";
|
|
6
|
-
|
|
5
|
+
import { el, keyed } from "./node.js";
|
|
6
|
+
// src/scene/compass-fan.ts
|
|
7
7
|
const FAN_RADIUS = 58;
|
|
8
8
|
const FAN_GHOST_STEPS = 10;
|
|
9
9
|
function compassFanSource(samples, station) {
|
|
@@ -39,5 +39,4 @@ function compassFanScene(input) {
|
|
|
39
39
|
})];
|
|
40
40
|
}), newestBlowing && newest.windDirectionDeg != null ? dialNeedle(newest.windDirectionDeg) : null, dialHub());
|
|
41
41
|
}
|
|
42
|
-
//#endregion
|
|
43
42
|
export { compassFanScene, compassFanSource };
|
package/dist/scene/current.d.ts
CHANGED
package/dist/scene/current.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { compassDirection, isCalm } from "../derive.js";
|
|
2
2
|
import { roundSpeed, temperatureText, temperatureValue } from "../format.js";
|
|
3
3
|
import "../instruments.js";
|
|
4
|
-
import { el } from "./node.js";
|
|
5
|
-
import { freshnessBadgeNode, windArrowNode } from "./glyphs.js";
|
|
6
4
|
import { dialScene } from "./dial.js";
|
|
7
|
-
|
|
5
|
+
import { freshnessBadgeNode, windArrowNode } from "./glyphs.js";
|
|
6
|
+
import { el } from "./node.js";
|
|
7
|
+
// src/scene/current.ts
|
|
8
8
|
function currentConditionsScene(input) {
|
|
9
9
|
const { bezelId, favorableDirections, formatTime, freshness, station, thresholds, unit, words } = input;
|
|
10
10
|
const reading = station.status === "ok" ? station.reading : null;
|
|
@@ -35,5 +35,4 @@ function currentConditionsScene(input) {
|
|
|
35
35
|
words
|
|
36
36
|
}), station.capabilities.gustLull ? flank({ class: "meteo-current-flank meteo-current-flank-gust" }, words.gustLabel, reading?.windGustMps) : null), el("p", { class: "meteo-current-direction" }, directionChildren), station.capabilities.temperature ? el("p", { class: "meteo-current-temp" }, temperatureText(reading?.temperatureC ?? null, words), reading?.windChillC != null ? el("span", { class: "meteo-current-chill" }, ` · ${words.feelsLikeLabel} ${temperatureValue(reading.windChillC)} ${words.degC}`) : null) : null, el("p", { class: "meteo-current-footer" }, freshness != null ? freshnessBadgeNode(freshness, words) : null, el("span", { class: "meteo-current-observed" }, reading == null ? "—" : formatTime(new Date(reading.observedAt)))));
|
|
37
37
|
}
|
|
38
|
-
//#endregion
|
|
39
38
|
export { currentConditionsScene };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { isCalm, thresholdsToMps } from "../derive.js";
|
|
2
|
-
import { dailyPattern, thinVanes } from "../geometry.js";
|
|
3
2
|
import { roundSpeed } from "../format.js";
|
|
3
|
+
import { dailyPattern, thinVanes } from "../geometry.js";
|
|
4
4
|
import { el } from "./node.js";
|
|
5
5
|
import { calmNoteText, displaySpeedScales, gapHatchPattern, gapHatchRect, gradedMeanTrace, speedGridLines, stretchedChartFrame, vaneCells, vaneGuideLines, vaneTickTexts, windRowLabels, windThresholdGuides, windZoneRects } from "./wind-plot.js";
|
|
6
|
-
|
|
6
|
+
// src/scene/daily-pattern.ts
|
|
7
7
|
const DAILY_PATTERN_CLASS = "meteo-daily-pattern";
|
|
8
8
|
const SYNTHETIC_EPOCH_MS = Date.parse("2000-01-01T00:00:00Z");
|
|
9
9
|
function dailyPatternSource(points, station) {
|
|
@@ -84,5 +84,4 @@ function dailyPatternSlotsScene(input) {
|
|
|
84
84
|
key: String(vane.key)
|
|
85
85
|
}]), vaneTickTexts(vanes, frame, scales, (timeMs) => formatMinuteOfDay((timeMs - SYNTHETIC_EPOCH_MS) / 6e4)))];
|
|
86
86
|
}
|
|
87
|
-
//#endregion
|
|
88
87
|
export { DAILY_PATTERN_CLASS, dailyPatternGate, dailyPatternScene, dailyPatternSlotsScene, dailyPatternSource };
|
package/dist/scene/dial-parts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DIAL_CARDINALS, DIAL_COUNTERWEIGHT_RADIUS, dialNeedlePoints, dialPolar, dialRingArcPath } from "../instruments.js";
|
|
2
2
|
import { el, keyed } from "./node.js";
|
|
3
|
-
|
|
3
|
+
// src/scene/dial-parts.ts
|
|
4
4
|
function dialRing() {
|
|
5
5
|
return el("circle", {
|
|
6
6
|
class: "meteo-wind-dial-ring",
|
|
@@ -66,5 +66,4 @@ function dialHub() {
|
|
|
66
66
|
r: 36
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
|
-
//#endregion
|
|
70
69
|
export { dialHub, dialLetters, dialNeedle, dialRing, dialTicks, dialVerdictRing };
|
package/dist/scene/dial.d.ts
CHANGED
package/dist/scene/dial.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { isCalm, thresholdsToMps } from "../derive.js";
|
|
2
|
-
import { speedBand } from "../geometry.js";
|
|
3
2
|
import { roundSpeed } from "../format.js";
|
|
3
|
+
import { speedBand } from "../geometry.js";
|
|
4
4
|
import { dialScaleMaxMps, dialSpeedArcPath } from "../instruments.js";
|
|
5
|
-
import { el, keyed } from "./node.js";
|
|
6
5
|
import { dialHub, dialLetters, dialNeedle, dialRing, dialTicks, dialVerdictRing } from "./dial-parts.js";
|
|
7
|
-
|
|
6
|
+
import { el, keyed } from "./node.js";
|
|
7
|
+
// src/scene/dial.ts
|
|
8
8
|
function dialScene(input) {
|
|
9
9
|
const { bezelId, calmWord, favorableDirections, size, station, thresholds, unit, words } = input;
|
|
10
10
|
const shown = (windAvgMps) => roundSpeed(windAvgMps, unit);
|
|
@@ -62,5 +62,4 @@ function dialScene(input) {
|
|
|
62
62
|
d: dialSpeedArcPath(arcFraction)
|
|
63
63
|
}) : null, dialTicks(), dialLetters(), blowing && reading.windDirectionDeg != null ? dialNeedle(reading.windDirectionDeg) : null, dialHub(), centre);
|
|
64
64
|
}
|
|
65
|
-
//#endregion
|
|
66
65
|
export { dialScene };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../contract.js";
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
2
|
+
import "../instruments.js";
|
|
3
|
+
import "../strings.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { favorableShare } from "../geometry.js";
|
|
2
2
|
import { el } from "./node.js";
|
|
3
|
-
|
|
3
|
+
// src/scene/favorable-share.ts
|
|
4
4
|
const FAVORABLE_SHARE_CLASS = "meteo-favorable-share";
|
|
5
5
|
function favorableShareSource(points, station) {
|
|
6
6
|
return points ?? (station?.status === "ok" ? station.history?.points : null) ?? [];
|
|
@@ -20,5 +20,4 @@ function favorableShareScene(input) {
|
|
|
20
20
|
class: FAVORABLE_SHARE_CLASS
|
|
21
21
|
}, el("span", { class: "meteo-favorable-share-label" }, words.favorableLabel), " ", el("span", { class: "meteo-favorable-share-value" }, words.percentShare(Math.round(share * 100))));
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { FAVORABLE_SHARE_CLASS, favorableShareScene, favorableShareSource };
|
package/dist/scene/glyphs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { el } from "./node.js";
|
|
2
|
-
|
|
2
|
+
// src/scene/glyphs.ts
|
|
3
3
|
function windArrowNode(deg, size = 12) {
|
|
4
4
|
return {
|
|
5
5
|
...el("svg", {
|
|
@@ -24,5 +24,4 @@ function freshnessBadgeNode(status, words) {
|
|
|
24
24
|
class: "meteo-freshness-dot"
|
|
25
25
|
}), words.freshness[status]);
|
|
26
26
|
}
|
|
27
|
-
//#endregion
|
|
28
27
|
export { freshnessBadgeNode, windArrowNode };
|
package/dist/scene/node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/scene/node.ts
|
|
2
2
|
/** An element node; children may be nested arrays and are flattened by the walkers. */
|
|
3
3
|
function el(tag, attrs, ...children) {
|
|
4
4
|
const node = { tag };
|
|
@@ -15,5 +15,4 @@ function keyed(key, tag, attrs, ...children) {
|
|
|
15
15
|
}
|
|
16
16
|
/** Tags that open an SVG subtree; everything inside one stays in that namespace. */
|
|
17
17
|
const SVG_ROOT_TAGS = /* @__PURE__ */ new Set(["svg"]);
|
|
18
|
-
//#endregion
|
|
19
18
|
export { SVG_ROOT_TAGS, el, keyed };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { optionalSpeed, roundSpeed } from "../format.js";
|
|
2
|
-
import { el, keyed } from "./node.js";
|
|
3
2
|
import { windArrowNode } from "./glyphs.js";
|
|
3
|
+
import { el, keyed } from "./node.js";
|
|
4
4
|
import { inDirectionArcs } from "@azohra/meteo.core";
|
|
5
|
-
|
|
5
|
+
// src/scene/recent-summaries.ts
|
|
6
6
|
const RECENT_SUMMARIES_CLASS = "meteo-recent-summaries";
|
|
7
7
|
/** Null unless the source declares the capability; the no-samples words
|
|
8
8
|
* when the declared block is dark. */
|
|
@@ -31,5 +31,4 @@ function recentSummariesScene(input) {
|
|
|
31
31
|
})), el("dl", { class: "meteo-recent-summary-stats" }, stat("avg", words.avgLabel, avgMps == null ? "—" : `${roundSpeed(avgMps, unit)} ${words.speedUnits[unit]}`), stat("gust", words.gustLabel, optionalSpeed(gusts.length === 0 ? null : Math.max(...gusts), unit)), stat("lull", words.lullLabel, optionalSpeed(lulls.length === 0 ? null : Math.min(...lulls), unit))));
|
|
32
32
|
}));
|
|
33
33
|
}
|
|
34
|
-
//#endregion
|
|
35
34
|
export { RECENT_SUMMARIES_CLASS, recentSummariesScene };
|
package/dist/scene/rose.d.ts
CHANGED
package/dist/scene/rose.js
CHANGED
|
@@ -2,7 +2,7 @@ import { normalizeDegrees, thresholdsToMps } from "../derive.js";
|
|
|
2
2
|
import { speedBand, windRose } from "../geometry.js";
|
|
3
3
|
import { ROSE_CARDINAL_LETTERS, ROSE_INTERCARDINAL_BEARINGS, ROSE_PETAL_FILL, roseBandPath, rosePetalPath, rosePolar, roseRingArcPath } from "../instruments.js";
|
|
4
4
|
import { el, keyed } from "./node.js";
|
|
5
|
-
|
|
5
|
+
// src/scene/rose.ts
|
|
6
6
|
const WIND_ROSE_CLASS = "meteo-wind-rose";
|
|
7
7
|
function windRoseSource(points, station) {
|
|
8
8
|
return points ?? (station?.status === "ok" ? station.history?.points : null) ?? [];
|
|
@@ -103,5 +103,4 @@ function windRoseScene(input, extra = []) {
|
|
|
103
103
|
r: 3
|
|
104
104
|
})), rose.calmFraction > 0 ? el("p", { class: "meteo-wind-rose-calm" }, words.percentCalm(Math.round(rose.calmFraction * 100))) : null, extra);
|
|
105
105
|
}
|
|
106
|
-
//#endregion
|
|
107
106
|
export { WIND_ROSE_CLASS, windRoseScene, windRoseSource };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { compassDirection, isCalm, speedToMps } from "../derive.js";
|
|
2
2
|
import { roundSpeed } from "../format.js";
|
|
3
3
|
import { samplePoints, sampleRuns, sampleScales, thinSampleVanes } from "../samples.js";
|
|
4
|
-
import { el, keyed } from "./node.js";
|
|
5
4
|
import { calmNoteText, plotLine, speedGridLines, stretchedChartFrame, vaneCells, vaneGuideLines, vaneTickTexts, windRowLabels } from "./wind-plot.js";
|
|
6
|
-
|
|
5
|
+
import { el, keyed } from "./node.js";
|
|
6
|
+
// src/scene/sample-strip.ts
|
|
7
7
|
const SAMPLE_STRIP_CLASS = "meteo-sample-strip";
|
|
8
8
|
function sampleStripGate(samples, words) {
|
|
9
9
|
if (samples == null || samples.points.length < 2) return {
|
|
@@ -125,5 +125,4 @@ function sampleStripScene(input) {
|
|
|
125
125
|
}
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
//#endregion
|
|
129
128
|
export { SAMPLE_STRIP_CLASS, sampleStripGate, sampleStripScene };
|
package/dist/scene/sparkline.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { el, keyed } from "./node.js";
|
|
1
2
|
import { thresholdsToMps } from "../derive.js";
|
|
2
3
|
import { speedBand } from "../geometry.js";
|
|
3
4
|
import { bandStrips, historyRuns, sparklineScale } from "../instruments.js";
|
|
4
|
-
|
|
5
|
-
//#region src/scene/sparkline.ts
|
|
5
|
+
// src/scene/sparkline.ts
|
|
6
6
|
const coordinate = (x, y) => `${x.toFixed(1)},${y.toFixed(1)}`;
|
|
7
7
|
function sparklineScene(input) {
|
|
8
8
|
const { height, showBand, station, thresholds, width, words } = input;
|
|
@@ -60,5 +60,4 @@ function sparklineScene(input) {
|
|
|
60
60
|
points: [...strip.points.map((point) => coordinate(xAt(Date.parse(point.observedAt)), yAt(point.windGustMps))), ...[...strip.points].reverse().map((point) => coordinate(xAt(Date.parse(point.observedAt)), yAt(point.windLullMps)))].join(" ")
|
|
61
61
|
})), trace);
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
export { sparklineScene };
|
package/dist/scene/strip.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { optionalSpeed, roundSpeed, temperatureText } from "../format.js";
|
|
2
|
-
import { el } from "./node.js";
|
|
3
|
-
import { freshnessBadgeNode } from "./glyphs.js";
|
|
4
2
|
import { directionCellNodes, stationNameNode } from "./cells.js";
|
|
5
|
-
|
|
3
|
+
import { freshnessBadgeNode } from "./glyphs.js";
|
|
4
|
+
import { el } from "./node.js";
|
|
5
|
+
// src/scene/strip.ts
|
|
6
6
|
function stationStripScene(input) {
|
|
7
7
|
const { formatTime, freshness, station, unit, words } = input;
|
|
8
8
|
const labelled = (className, label, value) => el("span", { class: className }, el("small", { class: "meteo-microlabel" }, label), value);
|
|
@@ -20,5 +20,4 @@ function stationStripScene(input) {
|
|
|
20
20
|
role: "group"
|
|
21
21
|
}, el("span", { class: "meteo-strip-station" }, stationNameNode(station)), cells);
|
|
22
22
|
}
|
|
23
|
-
//#endregion
|
|
24
23
|
export { stationStripScene };
|
package/dist/scene/table.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { optionalSpeed, roundSpeed, temperatureText } from "../format.js";
|
|
2
|
-
import { el, keyed } from "./node.js";
|
|
3
|
-
import { freshnessBadgeNode } from "./glyphs.js";
|
|
4
2
|
import { directionCellNodes } from "./cells.js";
|
|
5
|
-
|
|
3
|
+
import { freshnessBadgeNode } from "./glyphs.js";
|
|
4
|
+
import { el, keyed } from "./node.js";
|
|
5
|
+
// src/scene/table.ts
|
|
6
6
|
const TABLE_ROW_CLASS = "meteo-station-table-row";
|
|
7
7
|
const TABLE_STATION_CELL_CLASS = "meteo-station-table-station";
|
|
8
8
|
function stationTableHeadNode(words) {
|
|
@@ -50,5 +50,4 @@ function stationTableRootAttrs(stations, words) {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
const TABLE_BODY_CLASS = "meteo-station-table-body";
|
|
53
|
-
//#endregion
|
|
54
53
|
export { TABLE_BODY_CLASS, TABLE_ROW_CLASS, TABLE_STATION_CELL_CLASS, stationTableHeadNode, stationTableRootAttrs, stationTableRowCells };
|
package/dist/scene/trend.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../contract.js";
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
2
|
+
import "../geometry.js";
|
|
3
|
+
import "../strings.js";
|
package/dist/scene/trend.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { chartFrame, chartScales, tickAnchor, trendRuns, trendSeriesPad, trendValueOf, valueScale } from "../geometry.js";
|
|
2
2
|
import { el, keyed } from "./node.js";
|
|
3
3
|
import { plotLine, plotText } from "./wind-plot.js";
|
|
4
|
-
|
|
4
|
+
// src/scene/trend.ts
|
|
5
5
|
const TREND_CLASS = "meteo-trend";
|
|
6
6
|
function trendGate(station, series, words) {
|
|
7
7
|
if (!station.capabilities.history) return { kind: "hidden" };
|
|
@@ -124,5 +124,4 @@ function trendScene(input) {
|
|
|
124
124
|
}
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
//#endregion
|
|
128
127
|
export { TREND_CLASS, trendFrame, trendGate, trendScene };
|