maplibre-gl-layers 0.16.0 → 0.18.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.
package/README.md CHANGED
@@ -83,8 +83,8 @@ In addition to images, you can render text alongside sprites and animate them to
83
83
  - Add multiple images and text to the same sprite, adjusting rotation, offset, scale, opacity, and more.
84
84
  - Animate sprite movement, rotation, and offsets with interpolation controls.
85
85
  - Control draw order via sub-layers and per-sprite ordering.
86
- - Bulk update API for many sprite states.
87
- - No package dependencies except MapLibre.
86
+ - Fully imperative APIs. Updates with high-performance and extensible.
87
+ - Accelerating computational processing with WASM and shaders.
88
88
 
89
89
  ### Requirements
90
90
 
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { SpriteLayerInterface, SpriteLayerOptions, SpriteLocation, SpriteImageDefinitionInit } from './types';
@@ -17,7 +17,7 @@ import { InternalSpriteImageState, InternalSpriteCurrentState, SpriteOriginRefer
17
17
  * @param {SpriteLocation} nextLocation - Destination location used to derive bearing and distance.
18
18
  * @returns {boolean} `true` when auto-rotation was applied, `false` otherwise.
19
19
  */
20
- export declare const applyAutoRotation: <T>(sprite: InternalSpriteCurrentState<T>, nextLocation: SpriteLocation) => boolean;
20
+ export declare const applyAutoRotation: <T>(sprite: InternalSpriteCurrentState<T>, nextLocation: SpriteLocation, forceAutoRotation: boolean) => boolean;
21
21
  /**
22
22
  * Creates internal sprite image state from initialization data and layer bookkeeping fields.
23
23
  * @param {SpriteImageDefinitionInit} imageInit - Caller-provided image definition.
package/dist/config.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  /** Debug flag */
package/dist/const.d.ts CHANGED
@@ -1,15 +1,16 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { Rect } from './utils/looseQuadTree';
12
12
  import { SpriteAnchor, SpriteImageOffset, SpriteTextGlyphHorizontalAlign } from './types';
13
+ import { RgbaColor } from './internalTypes';
13
14
  /** Default sprite anchor centered at the image origin. */
14
15
  export declare const DEFAULT_ANCHOR: Readonly<SpriteAnchor>;
15
16
  /** Default image offset applied when none is provided. */
@@ -69,3 +70,26 @@ export declare const TRIANGLE_INDICES: readonly [0, 1, 2, 2, 1, 3];
69
70
  * @constant
70
71
  */
71
72
  export declare const UV_CORNERS: ReadonlyArray<readonly [number, number]>;
73
+ declare const __CSS_KEYWORD_COLORS: {
74
+ black: RgbaColor;
75
+ silver: RgbaColor;
76
+ gray: RgbaColor;
77
+ white: RgbaColor;
78
+ maroon: RgbaColor;
79
+ red: RgbaColor;
80
+ purple: RgbaColor;
81
+ fuchsia: RgbaColor;
82
+ green: RgbaColor;
83
+ lime: RgbaColor;
84
+ olive: RgbaColor;
85
+ yellow: RgbaColor;
86
+ navy: RgbaColor;
87
+ blue: RgbaColor;
88
+ teal: RgbaColor;
89
+ aqua: RgbaColor;
90
+ transparent: RgbaColor;
91
+ };
92
+ export declare const CSS_KEYWORD_COLORS: typeof __CSS_KEYWORD_COLORS & Record<string, RgbaColor>;
93
+ export declare const DEFAULT_BORDER_COLOR = "red";
94
+ export declare const DEFAULT_BORDER_COLOR_RGBA: RgbaColor;
95
+ export {};
package/dist/default.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
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.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { Deferred } from 'async-primitives';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { Map as MapLibreMap } from 'maplibre-gl';
@@ -1,17 +1,16 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { SpriteAnchor, SpriteScreenPoint, SpriteTextureFilteringOptions } from '../types';
12
- import { ImageHandleBufferController, PreparedDrawSpriteImageParams, RegisteredImage, Releasable, ResolvedTextureFilteringOptions } from '../internalTypes';
12
+ import { ImageHandleBufferController, PreparedDrawSpriteImageParams, RegisteredImage, Releasable, ResolvedTextureFilteringOptions, RgbaColor } from '../internalTypes';
13
13
  import { AtlasManager, AtlasOperationQueue, AtlasPageState } from './atlas';
14
- import { RgbaColor } from '../utils/color';
15
14
  /** Number of components per vertex (clipPosition.xyzw + uv.xy). */
16
15
  export declare const VERTEX_COMPONENT_COUNT = 6;
17
16
  /** Component count for clip-space position attributes. */
package/dist/gl/text.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { SpriteTextGlyphDimensions, SpriteTextGlyphOptions } from '../types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { Map as MapLibreMap } from 'maplibre-gl';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { Map as MapLibreMap } from 'maplibre-gl';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { mat4 as Mat4 } from 'gl-matrix';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { SpriteLayerCalculationVariant, SpriteLayerHostOptions } from '../types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { DistanceInterpolationEvaluationResult, DegreeInterpolationEvaluationResult, ImageHandleBufferController, IdHandler, InternalSpriteCurrentState, InternalSpriteImageState, PreparedDrawSpriteImageParams, PrepareDrawSpriteImageParams, Releasable, RegisteredImage, RenderCalculationHost, RenderInterpolationParams, RenderInterpolationResult, SpriteOriginReference, SpriteInterpolationEvaluationResult } from '../internalTypes';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { SpriteLayerCalculationVariant } from '../types';
@@ -121,7 +121,7 @@ export interface InitializeWasmHostOptions {
121
121
  * @param options Options.
122
122
  * @returns Initialized WasmHost.
123
123
  */
124
- export declare const initializeWasmHost: (preferredVariant?: WasmVariant, options?: InitializeWasmHostOptions) => Promise<WasmVariant>;
124
+ export declare const initializeWasmHost: (preferredVariant: WasmVariant, options: InitializeWasmHostOptions) => Promise<WasmVariant>;
125
125
  /**
126
126
  * Release wasm offload module.
127
127
  */
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.16.0
3
+ * version: 0.18.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: 8d2149a6811cac25ed9d8c1d97acde73e1a38e25
8
+ * git.commit.hash: ca8392c8aa3aae7e0e4e3c871e195d49b125e481
9
9
  */
10
10
 
11
11
  import { ProjectionHostParams } from './projectionHost';