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