maplibre-gl-nightlayer 1.0.0-alpha.0 → 1.0.0-alpha.10

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/README.md CHANGED
@@ -16,46 +16,69 @@ import { NightLayer } from 'maplibre-gl-nightlayer';
16
16
  :
17
17
 
18
18
  map.on('load', () => {
19
- map.addLayer(new NightLayer());
19
+ map.addLayer(new NightLayer({
20
+ // These are the default values
21
+ date: null,
22
+ opacity: 0.5,
23
+ color: [0, 0, 0, 255],
24
+ daytimeColor: [0, 0, 0, 0], // transparent
25
+ twilightSteps: 0,
26
+ twilightAttenuation: 0.5,
27
+ updateInterval: 10000, // in milliseconds
28
+ }));
20
29
  });
21
30
  ```
22
31
 
23
32
  ## API
24
33
  ```ts
25
- type Color = [number, number, number];
34
+ type Color3 = [number, number, number];
35
+ type Color4 = [number, number, number, number];
36
+ type Color = Color3 | Color4;
26
37
 
27
38
  type Options = {
28
- opacity?: number;
29
- date?: Date | null;
30
- color?: Color;
31
- twilightSteps?: number;
32
- twilightStepAngle?: number;
33
- twilightAttenuation?: number;
39
+ date?: Date | null;
40
+ opacity?: number;
41
+ color?: Color;
42
+ daytimeColor?: Color;
43
+ twilightSteps?: number;
44
+ twilightAttenuation?: number;
34
45
  };
35
46
 
36
- class NightLayer implements CustomLayerInterface {
37
- constructor(opts?: Options);
47
+ export class NightLayer implements CustomLayerInterface {
48
+ constructor(opts?: Options);
38
49
 
39
- getSubsolarPoint(date: Date): {
40
- subsolarLng: number;
41
- subsolarLat: number;
42
- };
50
+ getSubsolarPoint(): {
51
+ lng: number;
52
+ lat: number;
53
+ };
43
54
 
44
- getDate(): Date | null;
45
- setDate(date: Date | null): void;
55
+ getDate(): Date | null;
56
+ setDate(date: Date | null): void;
46
57
 
47
- getColor(): Color;
48
- setColor(v: Color): void;
58
+ getOpacity(): number;
59
+ setOpacity(opacity: number): void;
49
60
 
50
- getTwilightSteps(): number;
51
- setTwilightSteps(v: number): void;
61
+ getColor(): Color4;
62
+ setColor(color: Color): void;
52
63
 
53
- getTwilightStepAngle(): number;
54
- setTwilightStepAngle(v: number): void;
64
+ getDaytimeColor(): Color4;
65
+ setDaytimeColor(color: Color): void;
55
66
 
56
- getTwilightAttenuation(): number;
57
- setTwilightAttenuation(v: number): void;
67
+ getTwilightSteps(): number;
68
+ setTwilightSteps(steps: number): void;
69
+
70
+ getTwilightAttenuation(): number;
71
+ setTwilightAttenuation(attenuation: number): void;
72
+
73
+ getUpdateInterval(): number;
74
+ setUpdateInterval(interval: number): void;
75
+
76
+ :
77
+ };
78
+
79
+ export function getSubsolarPoint(date?: Date): {
80
+ lng: number;
81
+ lat: number;
82
+ };
58
83
 
59
- :
60
- }
61
84
  ```
package/dist/main.d.ts CHANGED
@@ -1,35 +1,157 @@
1
- import type { CustomLayerInterface, Map as MaplibreMap } from 'maplibre-gl';
1
+ import type { CustomLayerInterface, CustomRenderMethodInput, Map as MaplibreMap } from 'maplibre-gl';
2
2
  import type { mat4 } from 'gl-matrix';
3
- type Color = [number, number, number];
3
+ /**
4
+ * Get the subsolar point (longitude and latitude) at the given date.
5
+ * @param date If null, the current date is used.
6
+ * @returns The subsolar point.
7
+ */
8
+ export declare function getSubsolarPoint(date?: Date): {
9
+ lng: number;
10
+ lat: number;
11
+ };
12
+ type Color3 = [number, number, number];
13
+ type Color4 = [number, number, number, number];
14
+ type Color = Color3 | Color4;
15
+ /**
16
+ * Options for the NightLayer.
17
+ */
4
18
  type Options = {
5
- opacity?: number;
19
+ /**
20
+ * Date for the shadow.
21
+ * If null, the current date is used.
22
+ */
6
23
  date?: Date | null;
24
+ /**
25
+ * Opacity of the layer.
26
+ * 0.0 means fully transparent, 1.0 means fully opaque
27
+ * default: 0.5
28
+ */
29
+ opacity?: number;
30
+ /**
31
+ * Color of the shadow: [r, g, b, a]
32
+ * Each value should be in the range [0, 255].
33
+ * default: [0, 0, 0, 255]
34
+ */
7
35
  color?: Color;
36
+ /**
37
+ * Color of the daytime: [r, g, b, a]
38
+ * Each value should be in the range [0, 255].
39
+ * default: [0, 0, 0, 0]
40
+ */
41
+ daytimeColor?: Color;
42
+ /**
43
+ * Number of twilight steps.
44
+ * 0 means no steps (gradation), 1 means one step (day/night), etc.
45
+ * default: 0
46
+ */
8
47
  twilightSteps?: number;
9
- twilightStepAngle?: number;
48
+ /**
49
+ * Attenuation factor for each twilight step.
50
+ * 0.0 means no attenuation, 1.0 means full attenuation
51
+ * default: 0.5
52
+ */
10
53
  twilightAttenuation?: number;
54
+ /**
55
+ * Update interval in milliseconds.
56
+ * Periodically triggers a repaint.
57
+ * default: 10000
58
+ */
59
+ updateInterval?: number;
11
60
  };
61
+ /**
62
+ * A custom Maplibre GL JS layer that renders the night side of the Earth.
63
+ */
12
64
  export declare class NightLayer implements CustomLayerInterface {
13
65
  #private;
14
66
  id: string;
15
67
  type: "custom";
16
68
  renderingMode: "2d";
69
+ /**
70
+ * Create a new NightLayer instance. Intended to be passed to `map.addLayer`.
71
+ * @param opts The options.
72
+ */
17
73
  constructor(opts?: Options);
18
- getSubsolarPoint(date: Date): {
19
- subsolarLng: number;
20
- subsolarLat: number;
74
+ /**
75
+ * Get the current subsolar point (longitude and latitude)
76
+ * @returns The subsolar point.
77
+ */
78
+ getSubsolarPoint(): {
79
+ lng: number;
80
+ lat: number;
21
81
  };
82
+ /**
83
+ * Get the date for the shadow.
84
+ * @returns The date. If null, the current date is used.
85
+ */
22
86
  getDate(): Date | null;
87
+ /**
88
+ * Set the date for the shadow.
89
+ * @param date If null, the current date is used.
90
+ */
23
91
  setDate(date: Date | null): void;
24
- getColor(): Color;
25
- setColor(v: Color): void;
92
+ /**
93
+ * Get the opacity of the shadow.
94
+ * @returns The opacity. 0.0 means fully transparent, 1.0 means fully opaque.
95
+ */
96
+ getOpacity(): number;
97
+ /**
98
+ * Set the opacity of the shadow.
99
+ * @param opacity 0.0 means fully transparent, 1.0 means fully opaque.
100
+ */
101
+ setOpacity(opacity: number): void;
102
+ /**
103
+ * Get the color of the shadow.
104
+ * @returns The color. Each value is in the range [0, 255].
105
+ */
106
+ getColor(): Color4;
107
+ /**
108
+ * Set the color of the shadow.
109
+ * @param color Each value should be in the range [0, 255].
110
+ */
111
+ setColor(color: Color): void;
112
+ /**
113
+ * Get the color of the daytime.
114
+ * @returns The color [r, g, b, a]. Each value is in the range [0, 255].
115
+ */
116
+ getDaytimeColor(): Color4;
117
+ /**
118
+ * Set the color of the daytime.
119
+ * @param color Each value should be in the range [0, 255].
120
+ */
121
+ setDaytimeColor(color: Color): void;
122
+ /**
123
+ * Get the number of twilight steps.
124
+ * @returns The steps. 0 means no steps (gradation), 1 means one step (day/night), etc.
125
+ */
26
126
  getTwilightSteps(): number;
27
- setTwilightSteps(v: number): void;
28
- getTwilightStepAngle(): number;
29
- setTwilightStepAngle(v: number): void;
127
+ /**
128
+ * Set the number of twilight steps.
129
+ * @param steps 0 means no steps (gradation), 1 means one step (day/night), etc.
130
+ */
131
+ setTwilightSteps(steps: number): void;
132
+ /**
133
+ * Get the attenuation factor for each twilight step.
134
+ * @returns The attenuation. 0.0 means no attenuation, 1.0 means full attenuation.
135
+ */
30
136
  getTwilightAttenuation(): number;
31
- setTwilightAttenuation(v: number): void;
32
- onAdd(map: MaplibreMap, gl: WebGLRenderingContext): void;
33
- render(gl: WebGLRenderingContext, matrix: mat4): void;
137
+ /**
138
+ * Set the attenuation factor for each twilight step.
139
+ * @param attenuation 0.0 means no attenuation, 1.0 means full attenuation.
140
+ */
141
+ setTwilightAttenuation(attenuation: number): void;
142
+ /**
143
+ * Get the update interval.
144
+ * @returns The interval in milliseconds.
145
+ */
146
+ getUpdateInterval(): number;
147
+ /**
148
+ * Set the update interval.
149
+ * @param interval The interval in milliseconds..
150
+ */
151
+ setUpdateInterval(interval: number): void;
152
+ onAdd(map: MaplibreMap, gl: WebGLRenderingContext | WebGL2RenderingContext): void;
153
+ onRemove(): void;
154
+ render(gl: WebGLRenderingContext | WebGL2RenderingContext, matrix: mat4, options: CustomRenderMethodInput): void;
155
+ render(gl: WebGLRenderingContext | WebGL2RenderingContext, options: CustomRenderMethodInput): void;
34
156
  }
35
157
  export default NightLayer;
package/dist/main.js CHANGED
@@ -1,27 +1,36 @@
1
- "use strict";import{MercatorCoordinate as l}from"maplibre-gl";function m(h){return h*Math.PI/180}function g(h){return h/Math.PI*180}export class NightLayer{id="nightlayer";type="custom";renderingMode="2d";#e;#h;#i;#r;#o;#a;#t;#n;#s;constructor(t={}){this.#e=t.date??null,this.#h=t.opacity??.5,this.#i=t.color??[0,0,0],this.#r=t.twilightSteps??0,this.#o=t.twilightStepAngle??6,this.#a=t.twilightAttenuation??.5}getSubsolarPoint(t){const e=(t.getTime()-Date.UTC(t.getUTCFullYear(),0,0))/864e5,a=2*Math.PI/365.24,n=m(23.44),r=.0167,i=(e+9)*a,o=i+2*r*Math.sin((e-3)*a),s=(i-Math.atan2(Math.sin(o),Math.cos(o)*Math.cos(n)))/Math.PI,u=720*(s-Math.trunc(s+.5)),c=-15*(t.getUTCHours()+t.getUTCMinutes()/60+t.getUTCSeconds()/3600-12+u/60),f=g(Math.asin(Math.sin(-n)*Math.cos(o)));return{subsolarLng:c,subsolarLat:f}}getDate(){return this.#e}setDate(t){this.#e=t}getColor(){return this.#i}setColor(t){this.#i=t}getTwilightSteps(){return this.#r}setTwilightSteps(t){this.#r=t}getTwilightStepAngle(){return this.#o}setTwilightStepAngle(t){this.#o=t}getTwilightAttenuation(){return this.#a}setTwilightAttenuation(t){this.#a=t}onAdd(t,e){const a=`
1
+ "use strict";import{MercatorCoordinate as f,createTileMesh as d}from"maplibre-gl";function p(n){return n*Math.PI/180}function g(n){return n/Math.PI*180}function l(n){const[t,r,u,o]=n.map(a=>a/255);return[t*o,r*o,u*o,o]}export function getSubsolarPoint(n){n=n||new Date;const t=(n.getTime()-Date.UTC(n.getUTCFullYear(),0,0))/864e5,r=2*Math.PI/365.24,u=p(23.44),o=.0167,a=(t+9)*r,e=a+2*o*Math.sin((t-3)*r),i=(a-Math.atan2(Math.sin(e),Math.cos(e)*Math.cos(u)))/Math.PI,s=720*(i-Math.trunc(i+.5)),h=-15*(n.getUTCHours()+n.getUTCMinutes()/60+n.getUTCSeconds()/3600+n.getUTCMilliseconds()/36e5-12+s/60),m=g(Math.asin(Math.sin(-u)*Math.cos(e)));return{lng:h,lat:m}}export class NightLayer{id="nightlayer";type="custom";renderingMode="2d";#n;#a;#c;#f;#s;#o;#u;#h;#e;#t;#i;#r;#l;#m;constructor(t={}){this.#a=t.opacity??.5,this.#u=t.twilightSteps??0,this.#h=t.twilightAttenuation??.5,this.#o=t.updateInterval??1e4,this.setColor(t.color??[0,0,0,255]),this.setDaytimeColor(t.daytimeColor??[0,0,0,0]),this.setDate(t.date??null)}#d(){const t=this.#n===null;this.#s&&(clearInterval(this.#s),this.#s=void 0),t&&this.#o>0&&(this.#s=setInterval(()=>this.#t?.triggerRepaint(),this.#o))}getSubsolarPoint(){return getSubsolarPoint(this.#n||new Date)}getDate(){return this.#n}setDate(t){this.#n=t,this.#d(),this.#t?.triggerRepaint()}getOpacity(){return this.#a}setOpacity(t){this.#a=t,this.#t?.triggerRepaint()}getColor(){return this.#c}setColor(t){this.#c=[...t.slice(0,3),t?.[3]??255],this.#t?.triggerRepaint()}getDaytimeColor(){return this.#f}setDaytimeColor(t){this.#f=[...t.slice(0,3),t?.[3]??255],this.#t?.triggerRepaint()}getTwilightSteps(){return this.#u}setTwilightSteps(t){this.#u=t,this.#t?.triggerRepaint()}getTwilightAttenuation(){return this.#h}setTwilightAttenuation(t){this.#h=t,this.#t?.triggerRepaint()}getUpdateInterval(){return this.#o}setUpdateInterval(t){this.#o=t,this.#d()}onAdd(t,r){this.#e=new Map,this.#i=r.createBuffer(),this.#r=r.createBuffer(),this.#t=t}onRemove(){this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#r=void 0}#p(t,r){const o=`#version 300 es
2
2
  precision highp float;
3
3
 
4
- attribute vec2 a_position;
4
+ in vec2 a_position;
5
+ out vec2 v_position;
5
6
 
7
+ ${!r.vertexShaderPrelude?`
6
8
  uniform mat4 u_matrix;
7
9
 
8
- varying vec2 v_position;
10
+ vec4 projectTile(vec2 pos) {
11
+ return u_matrix * vec4(pos, 0., 1.);
12
+ }
13
+ `:`
14
+ ${r.vertexShaderPrelude}
15
+ ${r.define}
16
+ `}
9
17
 
10
18
  void main() {
11
- vec4 tmp = u_matrix * vec4(a_position, 0.0, 1.0);
12
- gl_Position = tmp;
13
- v_position = a_position;
14
- }`,n=`
19
+ gl_Position = projectTile(a_position);
20
+ v_position = a_position;
21
+ }
22
+ `,a=`#version 300 es
15
23
  precision highp float;
16
24
 
25
+ in vec2 v_position;
26
+ out vec4 fragColor;
27
+
17
28
  uniform vec2 u_subsolar;
18
29
  uniform float u_opacity;
19
- uniform float u_twilight_step_angle;
20
30
  uniform float u_twilight_steps;
21
31
  uniform float u_twilight_attenuation;
22
- uniform vec3 u_color;
23
-
24
- varying vec2 v_position;
32
+ uniform vec4 u_daytime_color;
33
+ uniform vec4 u_night_color;
25
34
 
26
35
  vec2 mercatorToLngLat(vec2 mercator) {
27
36
  // 0 <= x <= 1, 0 <= y <= 1
@@ -42,7 +51,9 @@
42
51
  float A = sin(observer.y) * sin(subsolar.y);
43
52
  float B = cos(observer.y) * cos(subsolar.y) * cos(subsolar.x - observer.x);
44
53
  float altitude = degrees(asin(A + B));
45
- float twilightStepAngle = u_twilight_step_angle;
54
+
55
+ float twilightStepAngle = 6.0;
56
+ float twilightBegins = -0.8333333;
46
57
  float twilightSteps = u_twilight_steps;
47
58
 
48
59
  // Attenuation for each twilightStepAngle
@@ -50,9 +61,12 @@
50
61
  float twilightLevel = -altitude / twilightStepAngle;
51
62
  if (twilightSteps > 0.) {
52
63
  twilightLevel = ceil(clamp(twilightLevel, 0., twilightSteps));
53
- }
54
- float brightness = clamp(pow(att, twilightLevel), 0., 1.);
55
- float darkness = (1. - brightness);
56
64
 
57
- gl_FragColor = vec4(u_color / 255., 1.0) * darkness * u_opacity;
58
- }`,r=e.createShader(e.VERTEX_SHADER);if(!r)throw new Error("failed to create vertex shader");e.shaderSource(r,a),e.compileShader(r);const i=e.createShader(e.FRAGMENT_SHADER);if(!i)throw new Error("failed to create fragment shader");if(e.shaderSource(i,n),e.compileShader(i),this.#t=e.createProgram(),!this.#t)throw new Error("failed to create program");e.attachShader(this.#t,r),e.attachShader(this.#t,i),e.linkProgram(this.#t),this.#s=e.createBuffer(),this.#n=t}render(t,e){if(!this.#s||!this.#t||!this.#n)return;const{subsolarLng:a,subsolarLat:n}=this.getSubsolarPoint(this.#e||new Date),[r,i]=this.#n.getBounds().toArray(),o=Math.floor(l.fromLngLat(r).x),s=Math.ceil(l.fromLngLat(i).x);t.useProgram(this.#t),t.uniformMatrix4fv(t.getUniformLocation(this.#t,"u_matrix"),!1,e),t.uniform2fv(t.getUniformLocation(this.#t,"u_subsolar"),[a,n]),t.uniform1f(t.getUniformLocation(this.#t,"u_opacity"),this.#h),t.uniform3fv(t.getUniformLocation(this.#t,"u_color"),this.#i),t.uniform1f(t.getUniformLocation(this.#t,"u_twilight_steps"),this.#r),t.uniform1f(t.getUniformLocation(this.#t,"u_twilight_step_angle"),this.#o),t.uniform1f(t.getUniformLocation(this.#t,"u_twilight_attenuation"),this.#a),t.bindBuffer(t.ARRAY_BUFFER,this.#s),t.bufferData(t.ARRAY_BUFFER,new Float32Array([o,0,s,0,o,1,o,1,s,0,s,1]),t.DYNAMIC_DRAW);const u=t.getAttribLocation(this.#t,"a_position");t.enableVertexAttribArray(u),t.vertexAttribPointer(u,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6)}}export default NightLayer;
65
+ if (altitude > twilightBegins) {
66
+ // XXX: Adjust for sunset/sunrise line
67
+ twilightLevel = 0.;
68
+ }
69
+ }
70
+ float brightness = clamp(pow(clamp(1. - att, 0., 1.), twilightLevel), 0., 1.);
71
+ fragColor = mix(u_night_color, u_daytime_color, brightness) * u_opacity;
72
+ }`,e=t.createShader(t.VERTEX_SHADER);if(!e)throw new Error("failed to create vertex shader");t.shaderSource(e,o),t.compileShader(e);const i=t.createShader(t.FRAGMENT_SHADER);if(!i)throw new Error("failed to create fragment shader");t.shaderSource(i,a),t.compileShader(i);const s=t.createProgram();if(!s)throw new Error("failed to create program");return t.attachShader(s,e),t.attachShader(s,i),t.linkProgram(s),s}#g(t){if(!this.#t||!this.#i||!this.#r)return;const[r,u]=this.#t.getBounds().toArray(),o=Math.floor(f.fromLngLat(r).x),a=Math.ceil(f.fromLngLat(u).x),e=this.#t.style?.projection?.name==="globe"?"globe":[o,a].join(":");if(e===this.#m)return;let i;e==="globe"?(i=d({granularity:100,generateBorders:!1,extendToNorthPole:!0,extendToSouthPole:!0},"16bit"),i.vertices=new Float32Array(new Int16Array(i.vertices)).map(s=>s/8192).buffer):i={vertices:new Float32Array([o,0,a,0,o,1,o,1,a,0,a,1]).buffer,indices:new Uint16Array([0,1,2,3,4,5]).buffer,uses32bitIndices:!1},t.bindBuffer(t.ARRAY_BUFFER,this.#i),t.bufferData(t.ARRAY_BUFFER,i.vertices,t.DYNAMIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,null),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.#r),t.bufferData(t.ELEMENT_ARRAY_BUFFER,i.indices,t.DYNAMIC_DRAW),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null),this.#l=i.indices.byteLength/2,this.#m=e}render(t,r,u){if(u||(u=r),!this.#e||!this.#i||!this.#r||!this.#t)return;const o=u.shaderData||{},a=o.variantName||"default";this.#e.has(a)||this.#e.set(a,this.#p(t,o));const e=this.#e.get(a);if(!e)return;const{lng:i,lat:s}=this.getSubsolarPoint();if(t.useProgram(e),t.uniform2fv(t.getUniformLocation(e,"u_subsolar"),[i,s]),t.uniform1f(t.getUniformLocation(e,"u_opacity"),this.#a),t.uniform4fv(t.getUniformLocation(e,"u_night_color"),l(this.#c)),t.uniform4fv(t.getUniformLocation(e,"u_daytime_color"),l(this.#f)),t.uniform1f(t.getUniformLocation(e,"u_twilight_steps"),this.#u),t.uniform1f(t.getUniformLocation(e,"u_twilight_attenuation"),this.#h),"getProjectionDataForCustomLayer"in this.#t.transform){const h=this.#t.transform.getProjectionDataForCustomLayer(!0);t.uniformMatrix4fv(t.getUniformLocation(e,"u_projection_fallback_matrix"),!1,h.fallbackMatrix),t.uniformMatrix4fv(t.getUniformLocation(e,"u_projection_matrix"),!1,h.mainMatrix),t.uniform4f(t.getUniformLocation(e,"u_projection_tile_mercator_coords"),...h.tileMercatorCoords),t.uniform4f(t.getUniformLocation(e,"u_projection_clipping_plane"),...h.clippingPlane),t.uniform1f(t.getUniformLocation(e,"u_projection_transition"),h.projectionTransition)}else t.uniformMatrix4fv(t.getUniformLocation(e,"u_matrix"),!1,r);this.#g(t),t.bindBuffer(t.ARRAY_BUFFER,this.#i),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.#r);const c=t.getAttribLocation(e,"a_position");t.enableVertexAttribArray(c),t.vertexAttribPointer(c,2,t.FLOAT,!1,0,0),t.drawElements(t.TRIANGLES,this.#l,t.UNSIGNED_SHORT,0)}}export default NightLayer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maplibre-gl-nightlayer",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.10",
4
4
  "description": "A Night Layer for MapLibre GL JS",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",
@@ -10,7 +10,7 @@
10
10
  "dist/"
11
11
  ],
12
12
  "scripts": {
13
- "dev": "vite playground/",
13
+ "dev": "vite playground/v5",
14
14
  "build": "pnpm run build:esm && pnpm run build:types",
15
15
  "build:esm": "esbuild src/main.ts --minify --outfile=dist/main.js",
16
16
  "build:types": "tsc --declaration --emitDeclarationOnly --declarationDir './dist'",
@@ -28,13 +28,14 @@
28
28
  "terminator"
29
29
  ],
30
30
  "author": "kikuchan98@gmail.com",
31
+ "homepage": "https://github.com/kikuchan/maplibre-gl-nightlayer#readme",
31
32
  "license": "MIT",
32
33
  "devDependencies": {
33
34
  "@biomejs/biome": "^1.9.4",
34
- "esbuild": "^0.24.0",
35
+ "esbuild": "^0.24.2",
35
36
  "gl-matrix": "^3.4.3",
36
- "maplibre-gl": "^4.7.1",
37
- "typescript": "^5.6.3",
38
- "vite": "^5.4.11"
37
+ "maplibre-gl": "5.0.0-pre.10",
38
+ "typescript": "^5.7.2",
39
+ "vite": "^6.0.5"
39
40
  }
40
41
  }