maplibre-gl-layers 0.10.0 → 0.11.0

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.
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.10.0
3
+ * version: 0.11.0
4
4
  * description: MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/maplibre-gl-layers.git
8
- * git.commit.hash: 58b99588e56fc80c6874d78a17e91a50901abc17
8
+ * git.commit.hash: 371efb126f281333d59ec75cfe788d45f3b1482e
9
9
  */
10
10
 
11
- import { Map as MapLibreMap } from 'maplibre-gl';
11
+ import { Map as MapLibreMap, MercatorCoordinate } from 'maplibre-gl';
12
12
  import { SpriteLayerInterface, SpriteLayerOptions, SpriteAnchor, SpriteLocation, SpriteImageDefinitionInit, SpriteImageOffset, SpriteInterpolationOptions } from './types';
13
13
  import { MatrixInput, ClipContext, InternalSpriteImageState, InternalSpriteCurrentState } from './internalTypes';
14
14
  /**
@@ -16,9 +16,10 @@ import { MatrixInput, ClipContext, InternalSpriteImageState, InternalSpriteCurre
16
16
  * Used to calculate distance-based scaling that responds to pitch, zoom, and altitude.
17
17
  * @param {MapLibreMap} mapInstance - MapLibre map providing the transform and camera distance.
18
18
  * @param {SpriteLocation} location - Location used to derive mercator coordinates for scaling.
19
+ * @param {MercatorCoordinate | undefined} [cachedMercator] - Optional precomputed Mercator coordinate for the location.
19
20
  * @returns {number} Perspective ratio applied when scaling sprites; defaults to 1 if unavailable.
20
21
  */
21
- export declare const calculatePerspectiveRatio: (mapInstance: MapLibreMap, location: SpriteLocation) => number;
22
+ export declare const calculatePerspectiveRatio: (mapInstance: MapLibreMap, location: SpriteLocation, cachedMercator?: MercatorCoordinate) => number;
22
23
  /**
23
24
  * Multiplies a 4x4 matrix with a 4-component vector using row-major indexing.
24
25
  * @param {MatrixInput} matrix - Matrix to multiply.
package/dist/const.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.10.0
3
+ * version: 0.11.0
4
4
  * description: MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/maplibre-gl-layers.git
8
- * git.commit.hash: 58b99588e56fc80c6874d78a17e91a50901abc17
8
+ * git.commit.hash: 371efb126f281333d59ec75cfe788d45f3b1482e
9
9
  */
10
10
 
11
11
  import { SpriteScalingOptions, SpriteTextureFilteringOptions } from './types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.10.0
3
+ * version: 0.11.0
4
4
  * description: MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/maplibre-gl-layers.git
8
- * git.commit.hash: 58b99588e56fc80c6874d78a17e91a50901abc17
8
+ * git.commit.hash: 371efb126f281333d59ec75cfe788d45f3b1482e
9
9
  */
10
10
 
11
11
  import { SpriteInterpolationOptions } from './types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.10.0
3
+ * version: 0.11.0
4
4
  * description: MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/maplibre-gl-layers.git
8
- * git.commit.hash: 58b99588e56fc80c6874d78a17e91a50901abc17
8
+ * git.commit.hash: 371efb126f281333d59ec75cfe788d45f3b1482e
9
9
  */
10
10
 
11
11
  import { SpriteInterpolationOptions } from './types';
package/dist/easing.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.10.0
3
+ * version: 0.11.0
4
4
  * description: MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images
5
5
  * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
6
  * license: MIT
7
7
  * repository.url: https://github.com/kekyo/maplibre-gl-layers.git
8
- * git.commit.hash: 58b99588e56fc80c6874d78a17e91a50901abc17
8
+ * git.commit.hash: 371efb126f281333d59ec75cfe788d45f3b1482e
9
9
  */
10
10
 
11
11
  import { EasingFunction } from './types';