maplibre-gl-nightlayer 1.0.0-alpha.2 → 1.0.0-alpha.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/main.d.ts +10 -0
- package/package.json +1 -1
package/dist/main.d.ts
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
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
|
+
*
|
|
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
|
+
*/
|
|
4
14
|
type Options = {
|
|
5
15
|
date?: Date | null;
|
|
6
16
|
opacity?: number;
|