@jjlmoya/utils-astronomy 1.35.1 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/package.json +66 -66
  2. package/src/category/index.ts +2 -1
  3. package/src/entries.ts +4 -2
  4. package/src/index.ts +2 -1
  5. package/src/tests/locale_completeness.test.ts +2 -2
  6. package/src/tests/tool_validation.test.ts +4 -3
  7. package/src/tool/astrophotographyExposureStackPlanner/astrophotography-exposure-stacking-planner.css +496 -0
  8. package/src/tool/astrophotographyExposureStackPlanner/bibliography.astro +14 -0
  9. package/src/tool/astrophotographyExposureStackPlanner/bibliography.ts +12 -0
  10. package/src/tool/astrophotographyExposureStackPlanner/component.astro +149 -0
  11. package/src/tool/astrophotographyExposureStackPlanner/controller.ts +125 -0
  12. package/src/tool/astrophotographyExposureStackPlanner/dom-views.ts +41 -0
  13. package/src/tool/astrophotographyExposureStackPlanner/entry.ts +29 -0
  14. package/src/tool/astrophotographyExposureStackPlanner/evaluator.ts +44 -0
  15. package/src/tool/astrophotographyExposureStackPlanner/i18n/de.ts +40 -0
  16. package/src/tool/astrophotographyExposureStackPlanner/i18n/en.ts +232 -0
  17. package/src/tool/astrophotographyExposureStackPlanner/i18n/es.ts +52 -0
  18. package/src/tool/astrophotographyExposureStackPlanner/i18n/fr.ts +40 -0
  19. package/src/tool/astrophotographyExposureStackPlanner/i18n/id.ts +40 -0
  20. package/src/tool/astrophotographyExposureStackPlanner/i18n/it.ts +40 -0
  21. package/src/tool/astrophotographyExposureStackPlanner/i18n/ja.ts +40 -0
  22. package/src/tool/astrophotographyExposureStackPlanner/i18n/ko.ts +40 -0
  23. package/src/tool/astrophotographyExposureStackPlanner/i18n/nl.ts +40 -0
  24. package/src/tool/astrophotographyExposureStackPlanner/i18n/pl.ts +40 -0
  25. package/src/tool/astrophotographyExposureStackPlanner/i18n/pt.ts +40 -0
  26. package/src/tool/astrophotographyExposureStackPlanner/i18n/ru.ts +40 -0
  27. package/src/tool/astrophotographyExposureStackPlanner/i18n/sv.ts +40 -0
  28. package/src/tool/astrophotographyExposureStackPlanner/i18n/tr.ts +40 -0
  29. package/src/tool/astrophotographyExposureStackPlanner/i18n/zh.ts +40 -0
  30. package/src/tool/astrophotographyExposureStackPlanner/index.ts +11 -0
  31. package/src/tool/astrophotographyExposureStackPlanner/localized.ts +59 -0
  32. package/src/tool/astrophotographyExposureStackPlanner/logic.test.ts +74 -0
  33. package/src/tool/astrophotographyExposureStackPlanner/logic.ts +95 -0
  34. package/src/tool/astrophotographyExposureStackPlanner/seo.astro +14 -0
  35. package/src/tool/astrophotographyExposureStackPlanner/storage.ts +22 -0
  36. package/src/tool/astrophotographyExposureStackPlanner/ui.ts +102 -0
  37. package/src/tool/meteorShowerObservingPlanner/dom-views.ts +38 -16
  38. package/src/tool/meteorShowerObservingPlanner/i18n/de.ts +219 -219
  39. package/src/tool/meteorShowerObservingPlanner/i18n/en.ts +219 -219
  40. package/src/tool/meteorShowerObservingPlanner/i18n/es.ts +219 -219
  41. package/src/tool/meteorShowerObservingPlanner/i18n/fr.ts +219 -219
  42. package/src/tool/meteorShowerObservingPlanner/i18n/id.ts +223 -223
  43. package/src/tool/meteorShowerObservingPlanner/i18n/it.ts +223 -223
  44. package/src/tool/meteorShowerObservingPlanner/i18n/ja.ts +219 -219
  45. package/src/tool/meteorShowerObservingPlanner/i18n/ko.ts +219 -219
  46. package/src/tool/meteorShowerObservingPlanner/i18n/nl.ts +223 -223
  47. package/src/tool/meteorShowerObservingPlanner/i18n/pl.ts +223 -223
  48. package/src/tool/meteorShowerObservingPlanner/i18n/pt.ts +223 -223
  49. package/src/tool/meteorShowerObservingPlanner/i18n/ru.ts +219 -219
  50. package/src/tool/meteorShowerObservingPlanner/i18n/sv.ts +223 -223
  51. package/src/tool/meteorShowerObservingPlanner/i18n/tr.ts +223 -223
  52. package/src/tool/meteorShowerObservingPlanner/i18n/zh.ts +219 -219
  53. package/src/tool/meteorShowerObservingPlanner/meteor-shower-observing-planner.css +16 -9
  54. package/src/tool/meteorShowerObservingPlanner/ui.ts +87 -87
  55. package/src/tools.ts +3 -1
@@ -1,87 +1,87 @@
1
- import type { BibliographyEntry } from '../../types';
2
-
3
- export interface ShowerPreset {
4
- id: string;
5
- name: string;
6
- peakMonth: number;
7
- peakDay: number;
8
- zhr: number;
9
- radiantConstellation: string;
10
- velocityKms: number;
11
- parentBody: string;
12
- }
13
-
14
- export interface ObservingPlannerInput {
15
- showerId: string;
16
- customZhr: number;
17
- latitude: number;
18
- bortleClass: number;
19
- moonPhase: number;
20
- sessionStartHour: number;
21
- sessionEndHour: number;
22
- }
23
-
24
- export interface HourlyCalculation {
25
- hour: number;
26
- formattedTime: string;
27
- radiantElevationDeg: number;
28
- effectiveZhr: number;
29
- qualityScore: number;
30
- moonInterferencePercent: number;
31
- isPeakHour: boolean;
32
- }
33
-
34
- export interface EvaluationResult {
35
- overallScore: number;
36
- bestWindowStart: string;
37
- bestWindowEnd: string;
38
- maxEffectiveRate: number;
39
- skyDarknessRating: string;
40
- moonImpactRating: string;
41
- badges: Array<{
42
- label: string;
43
- type: 'success' | 'warning' | 'info' | 'error';
44
- }>;
45
- hourlyBreakdown: HourlyCalculation[];
46
- }
47
-
48
- export interface MeteorShowerObservingPlannerUI {
49
- [key: string]: unknown;
50
- title: string;
51
- subtitle: string;
52
- presetLabel: string;
53
- customZhrLabel: string;
54
- latitudeLabel: string;
55
- bortleLabel: string;
56
- moonPhaseLabel: string;
57
- sessionHoursLabel: string;
58
- toLabel: string;
59
- classLabel: string;
60
- radiantTelemetryLabel: string;
61
- belowHorizonLabel: string;
62
- altLabel: string;
63
- hrUnit: string;
64
- presets: Record<string, string>;
65
- bortleDescriptions: Record<number, string>;
66
- moonPhaseNames: Record<string, string>;
67
- badgeLabels: Record<string, string>;
68
- resultsTitle: string;
69
- bestWindowLabel: string;
70
- maxRateLabel: string;
71
- skyQualityLabel: string;
72
- hourlyChartTitle: string;
73
- checklistTitle: string;
74
- checklistItems: string[];
75
- }
76
-
77
- export interface MeteorShowerObservingPlannerLocaleContent {
78
- slug: string;
79
- title: string;
80
- description: string;
81
- ui: MeteorShowerObservingPlannerUI;
82
- seo: unknown[];
83
- faq: Array<{ question: string; answer: string }>;
84
- howTo: Array<{ name: string; text: string }>;
85
- bibliography: BibliographyEntry[];
86
- schemas: unknown[];
87
- }
1
+ import type { BibliographyEntry } from '../../types';
2
+
3
+ export interface ShowerPreset {
4
+ id: string;
5
+ name: string;
6
+ peakMonth: number;
7
+ peakDay: number;
8
+ zhr: number;
9
+ radiantConstellation: string;
10
+ velocityKms: number;
11
+ parentBody: string;
12
+ }
13
+
14
+ export interface ObservingPlannerInput {
15
+ showerId: string;
16
+ customZhr: number;
17
+ latitude: number;
18
+ bortleClass: number;
19
+ moonPhase: number;
20
+ sessionStartHour: number;
21
+ sessionEndHour: number;
22
+ }
23
+
24
+ export interface HourlyCalculation {
25
+ hour: number;
26
+ formattedTime: string;
27
+ radiantElevationDeg: number;
28
+ effectiveZhr: number;
29
+ qualityScore: number;
30
+ moonInterferencePercent: number;
31
+ isPeakHour: boolean;
32
+ }
33
+
34
+ export interface EvaluationResult {
35
+ overallScore: number;
36
+ bestWindowStart: string;
37
+ bestWindowEnd: string;
38
+ maxEffectiveRate: number;
39
+ skyDarknessRating: string;
40
+ moonImpactRating: string;
41
+ badges: Array<{
42
+ label: string;
43
+ type: 'success' | 'warning' | 'info' | 'error';
44
+ }>;
45
+ hourlyBreakdown: HourlyCalculation[];
46
+ }
47
+
48
+ export interface MeteorShowerObservingPlannerUI {
49
+ [key: string]: unknown;
50
+ title: string;
51
+ subtitle: string;
52
+ presetLabel: string;
53
+ customZhrLabel: string;
54
+ latitudeLabel: string;
55
+ bortleLabel: string;
56
+ moonPhaseLabel: string;
57
+ sessionHoursLabel: string;
58
+ toLabel: string;
59
+ classLabel: string;
60
+ radiantTelemetryLabel: string;
61
+ belowHorizonLabel: string;
62
+ altLabel: string;
63
+ hrUnit: string;
64
+ presets: Record<string, string>;
65
+ bortleDescriptions: Record<number, string>;
66
+ moonPhaseNames: Record<string, string>;
67
+ badgeLabels: Record<string, string>;
68
+ resultsTitle: string;
69
+ bestWindowLabel: string;
70
+ maxRateLabel: string;
71
+ skyQualityLabel: string;
72
+ hourlyChartTitle: string;
73
+ checklistTitle: string;
74
+ checklistItems: string[];
75
+ }
76
+
77
+ export interface MeteorShowerObservingPlannerLocaleContent {
78
+ slug: string;
79
+ title: string;
80
+ description: string;
81
+ ui: MeteorShowerObservingPlannerUI;
82
+ seo: unknown[];
83
+ faq: Array<{ question: string; answer: string }>;
84
+ howTo: Array<{ name: string; text: string }>;
85
+ bibliography: BibliographyEntry[];
86
+ schemas: unknown[];
87
+ }
package/src/tools.ts CHANGED
@@ -6,6 +6,7 @@ import { TELESCOPE_RESOLUTION_TOOL } from './tool/telescopeResolution';
6
6
  import { EYEPIECE_CALCULATOR_TOOL } from './tool/smartEyepieceCalculator';
7
7
  import { TELESCOPE_EXIT_PUPIL_PLANNER_TOOL } from './tool/telescopeExitPupilPlanner';
8
8
  import { METEOR_SHOWER_OBSERVING_PLANNER_TOOL } from './tool/meteorShowerObservingPlanner';
9
+ import { ASTROPHOTOGRAPHY_EXPOSURE_STACK_PLANNER_TOOL } from './tool/astrophotographyExposureStackPlanner';
9
10
  import type { ToolDefinition } from './types';
10
11
 
11
12
  export const ALL_TOOLS: ToolDefinition[] = [
@@ -16,6 +17,7 @@ export const ALL_TOOLS: ToolDefinition[] = [
16
17
  EYEPIECE_CALCULATOR_TOOL,
17
18
  TELESCOPE_EXIT_PUPIL_PLANNER_TOOL,
18
19
  METEOR_SHOWER_OBSERVING_PLANNER_TOOL,
20
+ ASTROPHOTOGRAPHY_EXPOSURE_STACK_PLANNER_TOOL,
19
21
  ];
20
22
 
21
23
  export {
@@ -26,5 +28,5 @@ export {
26
28
  EYEPIECE_CALCULATOR_TOOL,
27
29
  TELESCOPE_EXIT_PUPIL_PLANNER_TOOL,
28
30
  METEOR_SHOWER_OBSERVING_PLANNER_TOOL,
31
+ ASTROPHOTOGRAPHY_EXPOSURE_STACK_PLANNER_TOOL,
29
32
  };
30
-