maplibre-gl-layers 0.19.0 → 1.0.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.
Files changed (40) hide show
  1. package/dist/SpriteLayer.d.ts +2 -2
  2. package/dist/config.d.ts +2 -2
  3. package/dist/const.d.ts +2 -2
  4. package/dist/default.d.ts +2 -2
  5. package/dist/gl/atlas.d.ts +2 -2
  6. package/dist/gl/hitTest.d.ts +2 -2
  7. package/dist/gl/mouseEvents.d.ts +2 -2
  8. package/dist/gl/shader.d.ts +2 -2
  9. package/dist/gl/text.d.ts +2 -2
  10. package/dist/gl/tracking.d.ts +2 -2
  11. package/dist/host/calculationHost.d.ts +3 -3
  12. package/dist/host/mapLibreProjectionHost.d.ts +2 -2
  13. package/dist/host/projectionHost.d.ts +2 -2
  14. package/dist/host/runtime.d.ts +2 -2
  15. package/dist/host/wasmCalculationHost.d.ts +15 -9
  16. package/dist/host/wasmHost.d.ts +2 -2
  17. package/dist/host/wasmProjectionHost.d.ts +2 -2
  18. package/dist/index.cjs +194 -84
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.ts +2 -2
  21. package/dist/index.mjs +194 -84
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/internalTypes.d.ts +2 -2
  24. package/dist/interpolation/degreeInterpolation.d.ts +3 -2
  25. package/dist/interpolation/distanceInterpolation.d.ts +3 -2
  26. package/dist/interpolation/easing.d.ts +2 -2
  27. package/dist/interpolation/interpolationChannels.d.ts +2 -2
  28. package/dist/interpolation/locationInterpolation.d.ts +2 -2
  29. package/dist/interpolation/rotationInterpolation.d.ts +2 -2
  30. package/dist/types.d.ts +2 -2
  31. package/dist/utils/color.d.ts +2 -2
  32. package/dist/utils/image.d.ts +2 -2
  33. package/dist/utils/looseQuadTree.d.ts +2 -2
  34. package/dist/utils/math.d.ts +2 -2
  35. package/dist/utils/utils.d.ts +2 -2
  36. package/dist/wasm/config.json.d.ts +2 -2
  37. package/dist/wasm/offloads-nosimd.wasm +0 -0
  38. package/dist/wasm/offloads-simd-mt.wasm +0 -0
  39. package/dist/wasm/offloads-simd.wasm +0 -0
  40. package/package.json +6 -6
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { SpriteLayerInterface, SpriteLayerOptions, SpriteLocation, SpriteImageDefinitionInit } from './types';
package/dist/config.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  /** Debug flag */
package/dist/const.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { Rect } from './utils/looseQuadTree';
package/dist/default.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { Releasable } from '../internalTypes';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { SpriteAnchor, SpriteScreenPoint, SpriteTextureFilteringOptions } from '../types';
package/dist/gl/text.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { Map as MapLibreMap } from 'maplibre-gl';
@@ -52,7 +52,7 @@ export declare const filterVisiblePreparedItems: <TTag>(preparedItems: readonly
52
52
  export interface ProcessInterpolationPresetRequests {
53
53
  readonly distance: readonly SpriteInterpolationState<number>[];
54
54
  readonly degree: readonly SpriteInterpolationState<number>[];
55
- readonly sprite: readonly SpriteInterpolationState<SpriteLocation>[];
55
+ readonly location: readonly SpriteInterpolationState<SpriteLocation>[];
56
56
  }
57
57
  export interface ProcessInterpolationsEvaluationHandlers {
58
58
  readonly prepare?: (requests: ProcessInterpolationPresetRequests, timestamp: number) => void;
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
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.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { ImageHandleBufferController, IdHandler, InternalSpriteCurrentState, InternalSpriteImageState, PreparedDrawSpriteImageParams, PrepareDrawSpriteImageParams, Releasable, RegisteredImage, RenderCalculationHost, RenderInterpolationParams, RenderInterpolationResult, SpriteOriginReference, SpriteInterpolationEvaluationResult } from '../internalTypes';
@@ -14,18 +14,24 @@ import { SpriteLocation } from '../types';
14
14
  import { BufferHolder, WasmHost } from './wasmHost';
15
15
  import { ProcessInterpolationPresetRequests } from './calculationHost';
16
16
  import { PreparedProjectionState, ProjectionHostParams } from './projectionHost';
17
+ interface WasmNumericInterpolationResult {
18
+ readonly value: number;
19
+ readonly finalValue: number;
20
+ readonly completed: boolean;
21
+ readonly effectiveStartTimestamp: number;
22
+ }
17
23
  interface WasmProcessInterpolationResults {
18
- readonly distance: SpriteInterpolationEvaluationResult<number>[];
19
- readonly degree: SpriteInterpolationEvaluationResult<number>[];
20
- readonly sprite: SpriteInterpolationEvaluationResult<SpriteLocation>[];
24
+ readonly distance: WasmNumericInterpolationResult[];
25
+ readonly degree: WasmNumericInterpolationResult[];
26
+ readonly location: SpriteInterpolationEvaluationResult<SpriteLocation>[];
21
27
  }
22
- type CalculateSurfaceDepthKeyOptions = {
28
+ interface CalculateSurfaceDepthKeyOptions {
23
29
  readonly indices?: readonly number[];
24
30
  readonly bias?: {
25
31
  readonly ndc: number;
26
32
  readonly minClipZEpsilon?: number;
27
33
  };
28
- };
34
+ }
29
35
  export declare const createWasmCalculateSurfaceDepthKey: (preparedState: PreparedProjectionState) => {
30
36
  (baseLngLat: Readonly<SpriteLocation>, displacements: readonly SurfaceCorner[], options?: CalculateSurfaceDepthKeyOptions): number | null;
31
37
  release(): void;
@@ -66,7 +72,7 @@ export declare const __wasmCalculationTestInternals: {
66
72
  convertToWasmProjectionState: <TTag>(wasm: WasmHost, params: ProjectionHostParams, deps: WasmCalculationInteropDependencies<TTag>) => WritableWasmProjectionState<TTag>;
67
73
  converToPreparedDrawImageParams: <TTag>(state: WritableWasmProjectionState<TTag>, deps: WasmCalculationInteropDependencies<TTag>, resultBuffer: BufferHolder<Float64Array>) => PreparedDrawSpriteImageParams<TTag>[];
68
74
  prepareDrawSpriteImagesInternal: <TTag>(wasm: WasmHost, wasmState: WritableWasmProjectionState<TTag>, deps: WasmCalculationInteropDependencies<TTag>, params: PrepareDrawSpriteImageParams<TTag>) => PreparedDrawSpriteImageParams<TTag>[];
69
- processInterpolationsViaWasm: (wasm: WasmHost, requests: ProcessInterpolationPresetRequests, timestamp: number) => WasmProcessInterpolationResults;
70
- processInterpolationsWithWasm: <TTag>(wasm: WasmHost, params: RenderInterpolationParams<TTag>) => RenderInterpolationResult;
75
+ internalProcessInterpolationsCore: (wasm: WasmHost, requests: ProcessInterpolationPresetRequests, timestamp: number) => WasmProcessInterpolationResults;
76
+ internalProcessInterpolations: <TTag>(wasm: WasmHost, params: RenderInterpolationParams<TTag>) => RenderInterpolationResult;
71
77
  };
72
78
  export {};
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { SpriteLayerCalculationVariant } from '../types';
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * name: maplibre-gl-layers
3
- * version: 0.19.0
3
+ * version: 1.0.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
8
+ * git.commit.hash: 3a2127f77d7fd3ed6ae30186d4a06f52610673a6
9
9
  */
10
10
 
11
11
  import { ProjectionHostParams } from './projectionHost';