maplibre-gl-layers 0.5.0 → 0.6.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,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  import { EasingFunction, SpriteInterpolationMode, SpriteInterpolationOptions, SpriteLocation } from './types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  import { SpriteLocation } from './types';
package/dist/math.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  import { SpriteAnchor, SpriteImageOffset, SpriteLocation, SpriteScalingOptions } from './types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  import { EasingFunction, SpriteNumericInterpolationOptions } from './types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  import { SpriteNumericInterpolationOptions } from './types';
package/dist/types.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  import { CustomLayerInterface } from 'maplibre-gl';
@@ -481,17 +481,50 @@ export declare const UNLIMITED_SPRITE_SCALING_OPTIONS: SpriteScalingOptions;
481
481
  * metersPerPixel is 1.
482
482
  */
483
483
  export declare const STANDARD_SPRITE_SCALING_OPTIONS: SpriteScalingOptions;
484
+ /**
485
+ * Allowed minification filters for sprite textures.
486
+ */
487
+ export type SpriteTextureMinFilter = 'nearest' | 'linear' | 'nearest-mipmap-nearest' | 'nearest-mipmap-linear' | 'linear-mipmap-nearest' | 'linear-mipmap-linear';
488
+ /**
489
+ * Allowed magnification filters for sprite textures.
490
+ */
491
+ export type SpriteTextureMagFilter = 'nearest' | 'linear';
492
+ /**
493
+ * Texture filtering configuration.
494
+ *
495
+ * @property {SpriteTextureMinFilter | undefined} minFilter - Minification filter to apply (defaults to `linear`).
496
+ * @property {SpriteTextureMagFilter | undefined} magFilter - Magnification filter to apply (defaults to `linear`).
497
+ * @property {boolean | undefined} generateMipmaps - Generates mipmaps during upload when true (defaults to `false`).
498
+ * @property {number | undefined} maxAnisotropy - Desired anisotropy factor (>= 1) when EXT_texture_filter_anisotropic is available.
499
+ */
500
+ export interface SpriteTextureFilteringOptions {
501
+ minFilter?: SpriteTextureMinFilter;
502
+ magFilter?: SpriteTextureMagFilter;
503
+ generateMipmaps?: boolean;
504
+ maxAnisotropy?: number;
505
+ }
506
+ /**
507
+ * Defaulted text filtering options.
508
+ */
509
+ export declare const DEFAULT_TEXTURE_FILTERING_OPTIONS: SpriteTextureFilteringOptions;
510
+ /**
511
+ * Better text filtering options than default options.
512
+ */
513
+ export declare const BETTER_TEXTURE_FILTERING_OPTIONS: SpriteTextureFilteringOptions;
484
514
  /**
485
515
  * Options accepted when creating a SpriteLayer.
486
516
  *
487
517
  * @property {string | undefined} id - Optional layer identifier supplied to MapLibre.
488
518
  * @property {SpriteScalingOptions | undefined} spriteScaling - Optional scaling controls. Default is UNLIMITED_SPRITE_SCALING_OPTIONS.
519
+ * @property {SpriteTextureFilteringOptions | undefined} textureFiltering - Optional texture filtering overrides.
489
520
  */
490
521
  export interface SpriteLayerOptions {
491
522
  /** Optional layer identifier supplied to MapLibre. */
492
523
  id?: string;
493
524
  /** Optional scaling controls. */
494
525
  spriteScaling?: SpriteScalingOptions;
526
+ /** Optional texture filtering configuration. */
527
+ textureFiltering?: SpriteTextureFilteringOptions;
495
528
  }
496
529
  /** Horizontal alignment options for text glyphs. */
497
530
  export type SpriteTextGlyphHorizontalAlign = 'left' | 'center' | 'right';
package/dist/utils.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.5.0
3
+ * version: 0.6.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: ce37eea48b788c36b4bf98cdfce83b95a85833ee
8
+ * git.commit.hash: 481f544de02fd3e71a2ba6c28bbb7eeb98b49eff
9
9
  */
10
10
 
11
11
  /**
package/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "git": {
3
3
  "tags": [
4
- "0.5.0"
4
+ "0.6.0"
5
5
  ],
6
6
  "branches": [
7
7
  "main"
8
8
  ],
9
- "version": "0.5.0",
9
+ "version": "0.6.0",
10
10
  "commit": {
11
- "hash": "ce37eea48b788c36b4bf98cdfce83b95a85833ee",
12
- "shortHash": "ce37eea",
13
- "date": "2025-10-30T12:28:02+09:00Z",
11
+ "hash": "481f544de02fd3e71a2ba6c28bbb7eeb98b49eff",
12
+ "shortHash": "481f544",
13
+ "date": "2025-10-30T14:50:01+09:00Z",
14
14
  "message": "Merge branch 'develop'"
15
15
  }
16
16
  },
17
- "version": "0.5.0",
17
+ "version": "0.6.0",
18
18
  "description": "MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images",
19
19
  "author": "Kouji Matsui (@kekyo@mi.kekyo.net)",
20
20
  "license": "MIT",