maplibre-gl-nightlayer 1.0.0-alpha.3 → 1.0.0-alpha.4
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/main.d.ts +23 -7
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -3,20 +3,36 @@ import type { mat4 } from 'gl-matrix';
|
|
|
3
3
|
type Color = [number, number, number];
|
|
4
4
|
/**
|
|
5
5
|
* Options for the NightLayer.
|
|
6
|
-
*
|
|
7
|
-
* @property date Date. If null, the current date is used.
|
|
8
|
-
* @property opacity Opacity. 0.0 means fully transparent, 1.0 means fully opaque.
|
|
9
|
-
* @property color RGB color. Each value should be in the range [0, 255].
|
|
10
|
-
* @property twilightSteps Number of twilight steps. 0 means no steps (gradation), 1 means one step (day/night), etc.
|
|
11
|
-
* @property twilightStepAngle Angle in degrees for each twilight step.
|
|
12
|
-
* @property twilightAttenuation Attenuation factor for each twilight step. 0.0 means no attenuation, 1.0 means full attenuation.
|
|
13
6
|
*/
|
|
14
7
|
type Options = {
|
|
8
|
+
/**
|
|
9
|
+
* Date.
|
|
10
|
+
* If null, the current date is used.
|
|
11
|
+
*/
|
|
15
12
|
date?: Date | null;
|
|
13
|
+
/**
|
|
14
|
+
* Opacity.
|
|
15
|
+
* 0.0 means fully transparent, 1.0 means fully opaque
|
|
16
|
+
*/
|
|
16
17
|
opacity?: number;
|
|
18
|
+
/**
|
|
19
|
+
* RGB color.
|
|
20
|
+
* Each value is in the range [0, 255].
|
|
21
|
+
*/
|
|
17
22
|
color?: Color;
|
|
23
|
+
/**
|
|
24
|
+
* Number of twilight steps.
|
|
25
|
+
* 0 means no steps (gradation), 1 means one step (day/night), etc.
|
|
26
|
+
*/
|
|
18
27
|
twilightSteps?: number;
|
|
28
|
+
/**
|
|
29
|
+
* Angle for each twilight step in degrees.
|
|
30
|
+
*/
|
|
19
31
|
twilightStepAngle?: number;
|
|
32
|
+
/**
|
|
33
|
+
* Attenuation factor for each twilight step.
|
|
34
|
+
* 0.0 means no attenuation, 1.0 means full attenuation
|
|
35
|
+
*/
|
|
20
36
|
twilightAttenuation?: number;
|
|
21
37
|
};
|
|
22
38
|
/**
|