mirror of
https://github.com/acamarata/pray-calc-dart.git
synced 2026-06-30 19:04:25 +00:00
docs: add Architecture section; ci: add --fatal-infos to dart analyze
This commit is contained in:
parent
e41b4c96b1
commit
00d37d3d63
2 changed files with 5 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
|||
with:
|
||||
sdk: ${{ matrix.dart-version }}
|
||||
- run: dart pub get
|
||||
- run: dart analyze
|
||||
- run: dart analyze --fatal-infos
|
||||
- run: dart test
|
||||
|
||||
format:
|
||||
|
|
|
|||
|
|
@ -85,6 +85,10 @@ Fixed-angle methods (ISNA 15 degrees, MWL 18 degrees, etc.) produce inaccurate F
|
|||
|
||||
Result: approximately 18 degrees at the equator, approximately 12-14 degrees at 50-55 degrees N in summer. Matches observational data from the Moonsighting Committee Worldwide.
|
||||
|
||||
## Architecture
|
||||
|
||||
Built in three layers: (1) [nrel_spa](https://pub.dev/packages/nrel_spa) provides the solar ephemeris foundation; (2) the MSC piecewise model computes seasonal minute offsets which are converted to depression angles via spherical trigonometry; (3) physics corrections (Earth-Sun distance, refraction, elevation dip) adjust the angle within [10°, 22°] bounds.
|
||||
|
||||
## Compatibility
|
||||
|
||||
Dart SDK 3.7.0+. Works in Flutter (iOS, Android, Web, Desktop), Dart CLI, and server-side Dart. Single dependency: [nrel_spa](https://pub.dev/packages/nrel_spa).
|
||||
|
|
|
|||
Loading…
Reference in a new issue