@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/bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @hebcal/core v5.3.
|
|
1
|
+
/*! @hebcal/core v5.3.3 */
|
|
2
2
|
var hebcal = (function (exports) {
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -7585,32 +7585,16 @@ class GeoLocation {
|
|
|
7585
7585
|
* the <code>TimeZone</code> for the location.
|
|
7586
7586
|
*/
|
|
7587
7587
|
constructor(name, latitude, longitude, elevation, timeZoneId) {
|
|
7588
|
+
/**
|
|
7589
|
+
* @private
|
|
7590
|
+
*/
|
|
7591
|
+
this.locationName = null;
|
|
7588
7592
|
this.setLocationName(name);
|
|
7589
7593
|
this.setLatitude(latitude);
|
|
7590
7594
|
this.setLongitude(longitude);
|
|
7591
7595
|
this.setElevation(elevation);
|
|
7592
7596
|
this.setTimeZone(timeZoneId);
|
|
7593
7597
|
}
|
|
7594
|
-
/**
|
|
7595
|
-
* @private
|
|
7596
|
-
*/
|
|
7597
|
-
latitude;
|
|
7598
|
-
/**
|
|
7599
|
-
* @private
|
|
7600
|
-
*/
|
|
7601
|
-
longitude;
|
|
7602
|
-
/**
|
|
7603
|
-
* @private
|
|
7604
|
-
*/
|
|
7605
|
-
locationName = null;
|
|
7606
|
-
/**
|
|
7607
|
-
* @private
|
|
7608
|
-
*/
|
|
7609
|
-
timeZoneId;
|
|
7610
|
-
/**
|
|
7611
|
-
* @private
|
|
7612
|
-
*/
|
|
7613
|
-
elevation;
|
|
7614
7598
|
/**
|
|
7615
7599
|
* Method to get the elevation in Meters.
|
|
7616
7600
|
*
|
|
@@ -7730,39 +7714,6 @@ class NOAACalculator {
|
|
|
7730
7714
|
this.date = date;
|
|
7731
7715
|
this.geoLocation = geoLocation;
|
|
7732
7716
|
}
|
|
7733
|
-
/**
|
|
7734
|
-
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
7735
|
-
* @private
|
|
7736
|
-
*/
|
|
7737
|
-
static GEOMETRIC_ZENITH = 90;
|
|
7738
|
-
/**
|
|
7739
|
-
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
7740
|
-
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
7741
|
-
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
7742
|
-
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
7743
|
-
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
7744
|
-
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
7745
|
-
* arc, and atmospheric refraction accounts for
|
|
7746
|
-
* 34 minutes or so, giving a total of 50
|
|
7747
|
-
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
7748
|
-
*/
|
|
7749
|
-
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
7750
|
-
/** Sun's zenith at civil twilight (96°). */
|
|
7751
|
-
static CIVIL_ZENITH = 96;
|
|
7752
|
-
/** Sun's zenith at nautical twilight (102°). */
|
|
7753
|
-
static NAUTICAL_ZENITH = 102;
|
|
7754
|
-
/** Sun's zenith at astronomical twilight (108°). */
|
|
7755
|
-
static ASTRONOMICAL_ZENITH = 108;
|
|
7756
|
-
/**
|
|
7757
|
-
* The Java Calendar encapsulated by this class to track the current date used by the class
|
|
7758
|
-
* @private
|
|
7759
|
-
*/
|
|
7760
|
-
date;
|
|
7761
|
-
/**
|
|
7762
|
-
* the {@link GeoLocation} used for calculations.
|
|
7763
|
-
* @private
|
|
7764
|
-
*/
|
|
7765
|
-
geoLocation;
|
|
7766
7717
|
/**
|
|
7767
7718
|
* The getSunrise method Returns a `Date` representing the
|
|
7768
7719
|
* {@link getElevationAdjustment elevation adjusted} sunrise time. The zenith used
|
|
@@ -8106,16 +8057,6 @@ class NOAACalculator {
|
|
|
8106
8057
|
}
|
|
8107
8058
|
return adjustedZenith;
|
|
8108
8059
|
}
|
|
8109
|
-
/**
|
|
8110
|
-
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
8111
|
-
* @private
|
|
8112
|
-
*/
|
|
8113
|
-
static JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
8114
|
-
/**
|
|
8115
|
-
* Julian days per century
|
|
8116
|
-
* @private
|
|
8117
|
-
*/
|
|
8118
|
-
static JULIAN_DAYS_PER_CENTURY = 36525;
|
|
8119
8060
|
/**
|
|
8120
8061
|
* A method that calculates UTC sunrise as well as any time based on an angle above or below sunrise.
|
|
8121
8062
|
* @param date
|
|
@@ -8632,6 +8573,39 @@ class NOAACalculator {
|
|
|
8632
8573
|
return timeUTC;
|
|
8633
8574
|
}
|
|
8634
8575
|
}
|
|
8576
|
+
/**
|
|
8577
|
+
* The zenith of astronomical sunrise and sunset. The sun is 90° from the vertical 0°
|
|
8578
|
+
* @private
|
|
8579
|
+
*/
|
|
8580
|
+
NOAACalculator.GEOMETRIC_ZENITH = 90;
|
|
8581
|
+
/**
|
|
8582
|
+
* Default value for Sun's zenith and true rise/set Zenith (used in this class and subclasses) is the angle that the
|
|
8583
|
+
* center of the Sun makes to a line perpendicular to the Earth's surface. If the Sun were a point and the Earth
|
|
8584
|
+
* were without an atmosphere, true sunset and sunrise would correspond to a 90° zenith. Because the Sun is not
|
|
8585
|
+
* a point, and because the atmosphere refracts light, this 90° zenith does not, in fact, correspond to true
|
|
8586
|
+
* sunset or sunrise, instead the center of the Sun's disk must lie just below the horizon for the upper edge to be
|
|
8587
|
+
* obscured. This means that a zenith of just above 90° must be used. The Sun subtends an angle of 16 minutes of
|
|
8588
|
+
* arc, and atmospheric refraction accounts for
|
|
8589
|
+
* 34 minutes or so, giving a total of 50
|
|
8590
|
+
* arcminutes. The total value for ZENITH is 90+(5/6) or 90.8333333° for true sunrise/sunset.
|
|
8591
|
+
*/
|
|
8592
|
+
// const ZENITH: number = GEOMETRIC_ZENITH + 5.0 / 6.0;
|
|
8593
|
+
/** Sun's zenith at civil twilight (96°). */
|
|
8594
|
+
NOAACalculator.CIVIL_ZENITH = 96;
|
|
8595
|
+
/** Sun's zenith at nautical twilight (102°). */
|
|
8596
|
+
NOAACalculator.NAUTICAL_ZENITH = 102;
|
|
8597
|
+
/** Sun's zenith at astronomical twilight (108°). */
|
|
8598
|
+
NOAACalculator.ASTRONOMICAL_ZENITH = 108;
|
|
8599
|
+
/**
|
|
8600
|
+
* The <a href="http://en.wikipedia.org/wiki/Julian_day">Julian day</a> of January 1, 2000
|
|
8601
|
+
* @private
|
|
8602
|
+
*/
|
|
8603
|
+
NOAACalculator.JULIAN_DAY_JAN_1_2000 = 2451545;
|
|
8604
|
+
/**
|
|
8605
|
+
* Julian days per century
|
|
8606
|
+
* @private
|
|
8607
|
+
*/
|
|
8608
|
+
NOAACalculator.JULIAN_DAYS_PER_CENTURY = 36525;
|
|
8635
8609
|
|
|
8636
8610
|
/*
|
|
8637
8611
|
Hebcal - A Jewish Calendar Generator
|
|
@@ -11853,7 +11827,7 @@ class DailyLearning {
|
|
|
11853
11827
|
}
|
|
11854
11828
|
|
|
11855
11829
|
// DO NOT EDIT THIS AUTO-GENERATED FILE!
|
|
11856
|
-
const version = '5.3.
|
|
11830
|
+
const version = '5.3.3';
|
|
11857
11831
|
|
|
11858
11832
|
const NONE$1 = 0;
|
|
11859
11833
|
const HALF = 1;
|