@hebcal/core 5.3.2 → 5.3.3
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/bundle.js +39 -65
- package/dist/bundle.min.js +2 -2
- package/dist/index.cjs +39 -65
- package/dist/index.mjs +39 -65
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.3 */
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
/** @private */
|
|
@@ -6110,32 +6110,16 @@ class GeoLocation {
|
|
|
6110
6110
|
* the <code>TimeZone</code> for the location.
|
|
6111
6111
|
*/
|
|
6112
6112
|
constructor(name, latitude, longitude, elevation, timeZoneId) {
|
|
6113
|
+
/**
|
|
6114
|
+
* @private
|
|
6115
|
+
*/
|
|
6116
|
+
this.locationName = null;
|
|
6113
6117
|
this.setLocationName(name);
|
|
6114
6118
|
this.setLatitude(latitude);
|
|
6115
6119
|
this.setLongitude(longitude);
|
|
6116
6120
|
this.setElevation(elevation);
|
|
6117
6121
|
this.setTimeZone(timeZoneId);
|
|
6118
6122
|
}
|
|
6119
|
-
/**
|
|
6120
|
-
* @private
|
|
6121
|
-
*/
|
|
6122
|
-
latitude;
|
|
6123
|
-
/**
|
|
6124
|
-
* @private
|
|
6125
|
-
*/
|
|
6126
|
-
longitude;
|
|
6127
|
-
/**
|
|
6128
|
-
* @private
|
|
6129
|
-
*/
|
|
6130
|
-
locationName = null;
|
|
6131
|
-
/**
|
|
6132
|
-
* @private
|
|
6133
|
-
*/
|
|
6134
|
-
timeZoneId;
|
|
6135
|
-
/**
|
|
6136
|
-
* @private
|
|
6137
|
-
*/
|
|
6138
|
-
elevation;
|
|
6139
6123
|
/**
|
|
6140
6124
|
* Method to get the elevation in Meters.
|
|
6141
6125
|
*
|
|
@@ -6258,39 +6242,6 @@ class NOAACalculator {
|
|
|
6258
6242
|
this.date = date;
|
|
6259
6243
|
this.geoLocation = geoLocation;
|
|
6260
6244
|
}
|
|
6261
|
-
/**
|
|
6262
|
-
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
6263
|
-
* @private
|
|
6264
|
-
*/
|
|
6265
|
-
static GEOMETRIC_ZENITH = 90;
|
|
6266
|
-
/**
|
|
6267
|
-
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
6268
|
-
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
6269
|
-
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
6270
|
-
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
6271
|
-
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
6272
|
-
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
6273
|
-
* arc, and atmospheric refraction accounts for
|
|
6274
|
-
* 34 minutes or so, giving a total of 50
|
|
6275
|
-
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
6276
|
-
*/
|
|
6277
|
-
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
6278
|
-
/** Sun's zenith at civil twilight (96°). */
|
|
6279
|
-
static CIVIL_ZENITH = 96;
|
|
6280
|
-
/** Sun's zenith at nautical twilight (102°). */
|
|
6281
|
-
static NAUTICAL_ZENITH = 102;
|
|
6282
|
-
/** Sun's zenith at astronomical twilight (108°). */
|
|
6283
|
-
static ASTRONOMICAL_ZENITH = 108;
|
|
6284
|
-
/**
|
|
6285
|
-
* The Java Calendar encapsulated by this class to track the current date used by the class
|
|
6286
|
-
* @private
|
|
6287
|
-
*/
|
|
6288
|
-
date;
|
|
6289
|
-
/**
|
|
6290
|
-
* the {@link GeoLocation} used for calculations.
|
|
6291
|
-
* @private
|
|
6292
|
-
*/
|
|
6293
|
-
geoLocation;
|
|
6294
6245
|
/**
|
|
6295
6246
|
* The getSunrise method Returns a `Date` representing the
|
|
6296
6247
|
* {@link getElevationAdjustment elevation adjusted} sunrise time. The zenith used
|
|
@@ -6640,16 +6591,6 @@ class NOAACalculator {
|
|
|
6640
6591
|
}
|
|
6641
6592
|
return adjustedZenith;
|
|
6642
6593
|
}
|
|
6643
|
-
/**
|
|
6644
|
-
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
6645
|
-
* @private
|
|
6646
|
-
*/
|
|
6647
|
-
static JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
6648
|
-
/**
|
|
6649
|
-
* Julian days per century
|
|
6650
|
-
* @private
|
|
6651
|
-
*/
|
|
6652
|
-
static JULIAN_DAYS_PER_CENTURY = 36525;
|
|
6653
6594
|
/**
|
|
6654
6595
|
* A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise.
|
|
6655
6596
|
* @param date
|
|
@@ -7189,6 +7130,39 @@ class NOAACalculator {
|
|
|
7189
7130
|
return timeUTC;
|
|
7190
7131
|
}
|
|
7191
7132
|
}
|
|
7133
|
+
/**
|
|
7134
|
+
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
7135
|
+
* @private
|
|
7136
|
+
*/
|
|
7137
|
+
NOAACalculator.GEOMETRIC_ZENITH = 90;
|
|
7138
|
+
/**
|
|
7139
|
+
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
7140
|
+
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
7141
|
+
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
7142
|
+
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
7143
|
+
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
7144
|
+
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
7145
|
+
* arc, and atmospheric refraction accounts for
|
|
7146
|
+
* 34 minutes or so, giving a total of 50
|
|
7147
|
+
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
7148
|
+
*/
|
|
7149
|
+
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
7150
|
+
/** Sun's zenith at civil twilight (96°). */
|
|
7151
|
+
NOAACalculator.CIVIL_ZENITH = 96;
|
|
7152
|
+
/** Sun's zenith at nautical twilight (102°). */
|
|
7153
|
+
NOAACalculator.NAUTICAL_ZENITH = 102;
|
|
7154
|
+
/** Sun's zenith at astronomical twilight (108°). */
|
|
7155
|
+
NOAACalculator.ASTRONOMICAL_ZENITH = 108;
|
|
7156
|
+
/**
|
|
7157
|
+
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
7158
|
+
* @private
|
|
7159
|
+
*/
|
|
7160
|
+
NOAACalculator.JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
7161
|
+
/**
|
|
7162
|
+
* Julian days per century
|
|
7163
|
+
* @private
|
|
7164
|
+
*/
|
|
7165
|
+
NOAACalculator.JULIAN_DAYS_PER_CENTURY = 36525;
|
|
7192
7166
|
|
|
7193
7167
|
/*
|
|
7194
7168
|
Hebcal - A Jewish Calendar Generator
|
|
@@ -10381,7 +10355,7 @@ class DailyLearning {
|
|
|
10381
10355
|
}
|
|
10382
10356
|
|
|
10383
10357
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
10384
|
-
const version = '5.3.
|
|
10358
|
+
const version = '5.3.3';
|
|
10385
10359
|
|
|
10386
10360
|
const NONE$1 = 0;
|
|
10387
10361
|
const HALF = 1;
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.3 */
|
|
2
2
|
/** @private */
|
|
3
3
|
const lengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
4
4
|
/** @private */
|
|
@@ -6108,32 +6108,16 @@ class GeoLocation {
|
|
|
6108
6108
|
* the <code>TimeZone</code> for the location.
|
|
6109
6109
|
*/
|
|
6110
6110
|
constructor(name, latitude, longitude, elevation, timeZoneId) {
|
|
6111
|
+
/**
|
|
6112
|
+
* @private
|
|
6113
|
+
*/
|
|
6114
|
+
this.locationName = null;
|
|
6111
6115
|
this.setLocationName(name);
|
|
6112
6116
|
this.setLatitude(latitude);
|
|
6113
6117
|
this.setLongitude(longitude);
|
|
6114
6118
|
this.setElevation(elevation);
|
|
6115
6119
|
this.setTimeZone(timeZoneId);
|
|
6116
6120
|
}
|
|
6117
|
-
/**
|
|
6118
|
-
* @private
|
|
6119
|
-
*/
|
|
6120
|
-
latitude;
|
|
6121
|
-
/**
|
|
6122
|
-
* @private
|
|
6123
|
-
*/
|
|
6124
|
-
longitude;
|
|
6125
|
-
/**
|
|
6126
|
-
* @private
|
|
6127
|
-
*/
|
|
6128
|
-
locationName = null;
|
|
6129
|
-
/**
|
|
6130
|
-
* @private
|
|
6131
|
-
*/
|
|
6132
|
-
timeZoneId;
|
|
6133
|
-
/**
|
|
6134
|
-
* @private
|
|
6135
|
-
*/
|
|
6136
|
-
elevation;
|
|
6137
6121
|
/**
|
|
6138
6122
|
* Method to get the elevation in Meters.
|
|
6139
6123
|
*
|
|
@@ -6256,39 +6240,6 @@ class NOAACalculator {
|
|
|
6256
6240
|
this.date = date;
|
|
6257
6241
|
this.geoLocation = geoLocation;
|
|
6258
6242
|
}
|
|
6259
|
-
/**
|
|
6260
|
-
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
6261
|
-
* @private
|
|
6262
|
-
*/
|
|
6263
|
-
static GEOMETRIC_ZENITH = 90;
|
|
6264
|
-
/**
|
|
6265
|
-
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
6266
|
-
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
6267
|
-
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
6268
|
-
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
6269
|
-
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
6270
|
-
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
6271
|
-
* arc, and atmospheric refraction accounts for
|
|
6272
|
-
* 34 minutes or so, giving a total of 50
|
|
6273
|
-
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
6274
|
-
*/
|
|
6275
|
-
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
6276
|
-
/** Sun's zenith at civil twilight (96°). */
|
|
6277
|
-
static CIVIL_ZENITH = 96;
|
|
6278
|
-
/** Sun's zenith at nautical twilight (102°). */
|
|
6279
|
-
static NAUTICAL_ZENITH = 102;
|
|
6280
|
-
/** Sun's zenith at astronomical twilight (108°). */
|
|
6281
|
-
static ASTRONOMICAL_ZENITH = 108;
|
|
6282
|
-
/**
|
|
6283
|
-
* The Java Calendar encapsulated by this class to track the current date used by the class
|
|
6284
|
-
* @private
|
|
6285
|
-
*/
|
|
6286
|
-
date;
|
|
6287
|
-
/**
|
|
6288
|
-
* the {@link GeoLocation} used for calculations.
|
|
6289
|
-
* @private
|
|
6290
|
-
*/
|
|
6291
|
-
geoLocation;
|
|
6292
6243
|
/**
|
|
6293
6244
|
* The getSunrise method Returns a `Date` representing the
|
|
6294
6245
|
* {@link getElevationAdjustment elevation adjusted} sunrise time. The zenith used
|
|
@@ -6638,16 +6589,6 @@ class NOAACalculator {
|
|
|
6638
6589
|
}
|
|
6639
6590
|
return adjustedZenith;
|
|
6640
6591
|
}
|
|
6641
|
-
/**
|
|
6642
|
-
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
6643
|
-
* @private
|
|
6644
|
-
*/
|
|
6645
|
-
static JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
6646
|
-
/**
|
|
6647
|
-
* Julian days per century
|
|
6648
|
-
* @private
|
|
6649
|
-
*/
|
|
6650
|
-
static JULIAN_DAYS_PER_CENTURY = 36525;
|
|
6651
6592
|
/**
|
|
6652
6593
|
* A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise.
|
|
6653
6594
|
* @param date
|
|
@@ -7187,6 +7128,39 @@ class NOAACalculator {
|
|
|
7187
7128
|
return timeUTC;
|
|
7188
7129
|
}
|
|
7189
7130
|
}
|
|
7131
|
+
/**
|
|
7132
|
+
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
7133
|
+
* @private
|
|
7134
|
+
*/
|
|
7135
|
+
NOAACalculator.GEOMETRIC_ZENITH = 90;
|
|
7136
|
+
/**
|
|
7137
|
+
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
7138
|
+
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
7139
|
+
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
7140
|
+
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
7141
|
+
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
7142
|
+
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
7143
|
+
* arc, and atmospheric refraction accounts for
|
|
7144
|
+
* 34 minutes or so, giving a total of 50
|
|
7145
|
+
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
7146
|
+
*/
|
|
7147
|
+
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
7148
|
+
/** Sun's zenith at civil twilight (96°). */
|
|
7149
|
+
NOAACalculator.CIVIL_ZENITH = 96;
|
|
7150
|
+
/** Sun's zenith at nautical twilight (102°). */
|
|
7151
|
+
NOAACalculator.NAUTICAL_ZENITH = 102;
|
|
7152
|
+
/** Sun's zenith at astronomical twilight (108°). */
|
|
7153
|
+
NOAACalculator.ASTRONOMICAL_ZENITH = 108;
|
|
7154
|
+
/**
|
|
7155
|
+
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
7156
|
+
* @private
|
|
7157
|
+
*/
|
|
7158
|
+
NOAACalculator.JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
7159
|
+
/**
|
|
7160
|
+
* Julian days per century
|
|
7161
|
+
* @private
|
|
7162
|
+
*/
|
|
7163
|
+
NOAACalculator.JULIAN_DAYS_PER_CENTURY = 36525;
|
|
7190
7164
|
|
|
7191
7165
|
/*
|
|
7192
7166
|
Hebcal - A Jewish Calendar Generator
|
|
@@ -10379,7 +10353,7 @@ class DailyLearning {
|
|
|
10379
10353
|
}
|
|
10380
10354
|
|
|
10381
10355
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
10382
|
-
const version = '5.3.
|
|
10356
|
+
const version = '5.3.3';
|
|
10383
10357
|
|
|
10384
10358
|
const NONE$1 = 0;
|
|
10385
10359
|
const HALF = 1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hebcal/core",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.3",
|
|
4
4
|
"author": "Michael J. Radwin (https://github.com/mjradwin)",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Eyal Schachter (https://github.com/Scimonster)",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"@babel/preset-env": "^7.24.4",
|
|
76
76
|
"@babel/register": "^7.23.7",
|
|
77
77
|
"@hebcal/hdate": "^0.9.1",
|
|
78
|
-
"@hebcal/noaa": "^0.8.
|
|
78
|
+
"@hebcal/noaa": "^0.8.14",
|
|
79
79
|
"@rollup/plugin-babel": "^6.0.4",
|
|
80
80
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
81
81
|
"@rollup/plugin-json": "^6.1.0",
|