maplibre-gl-layers 0.5.0 → 0.10.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/package.json CHANGED
@@ -1,20 +1,20 @@
1
1
  {
2
2
  "git": {
3
3
  "tags": [
4
- "0.5.0"
4
+ "0.10.0"
5
5
  ],
6
6
  "branches": [
7
7
  "main"
8
8
  ],
9
- "version": "0.5.0",
9
+ "version": "0.10.0",
10
10
  "commit": {
11
- "hash": "ce37eea48b788c36b4bf98cdfce83b95a85833ee",
12
- "shortHash": "ce37eea",
13
- "date": "2025-10-30T12:28:02+09:00Z",
11
+ "hash": "58b99588e56fc80c6874d78a17e91a50901abc17",
12
+ "shortHash": "58b9958",
13
+ "date": "2025-10-31T17:33:48+09:00Z",
14
14
  "message": "Merge branch 'develop'"
15
15
  }
16
16
  },
17
- "version": "0.5.0",
17
+ "version": "0.10.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",
@@ -1,80 +0,0 @@
1
- /*!
2
- * name: maplibre-gl-layers
3
- * version: 0.5.0
4
- * description: MapLibre's layer extension library enabling the display, movement, and modification of large numbers of dynamic sprite images
5
- * author: Kouji Matsui (@kekyo@mi.kekyo.net)
6
- * license: MIT
7
- * repository.url: https://github.com/kekyo/maplibre-gl-layers.git
8
- * git.commit.hash: ce37eea48b788c36b4bf98cdfce83b95a85833ee
9
- */
10
-
11
- import { EasingFunction, SpriteNumericInterpolationOptions } from './types';
12
- /**
13
- * Runtime state tracked for numeric interpolations.
14
- * @property {number} durationMs - Total duration of the interpolation in milliseconds.
15
- * @property {EasingFunction} easing - Easing function applied to progress samples.
16
- * @property {number} from - Start value used for interpolation.
17
- * @property {number} to - Adjusted target along the shortest rotation path.
18
- * @property {number} finalValue - Caller-requested final value (used once interpolation completes).
19
- * @property {number} startTimestamp - Timestamp when interpolation began, `-1` until evaluation starts.
20
- */
21
- export interface NumericInterpolationState {
22
- readonly durationMs: number;
23
- readonly easing: EasingFunction;
24
- readonly from: number;
25
- readonly to: number;
26
- readonly finalValue: number;
27
- startTimestamp: number;
28
- }
29
- /**
30
- * Parameters required to construct a {@link NumericInterpolationState}.
31
- * @property {number} currentValue - Current numeric value rendered on screen.
32
- * @property {number} targetValue - Desired value after interpolation completes.
33
- * @property {SpriteNumericInterpolationOptions} options - Timing and easing configuration.
34
- */
35
- export interface CreateNumericInterpolationStateParams {
36
- currentValue: number;
37
- targetValue: number;
38
- options: SpriteNumericInterpolationOptions;
39
- }
40
- /**
41
- * Result returned by {@link createNumericInterpolationState} containing state and a flag for activation.
42
- * @property {NumericInterpolationState} state - Resolved state object.
43
- * @property {boolean} requiresInterpolation - Indicates whether the caller should animate or snap.
44
- */
45
- export interface CreateNumericInterpolationStateResult {
46
- readonly state: NumericInterpolationState;
47
- readonly requiresInterpolation: boolean;
48
- }
49
- /**
50
- * Creates interpolation state describing how to move from the current value to the target value.
51
- * @param {CreateNumericInterpolationStateParams} params - Inputs describing the current, target, and options.
52
- * @returns {CreateNumericInterpolationStateResult} State data plus a flag indicating if animation is needed.
53
- */
54
- export declare const createNumericInterpolationState: (params: CreateNumericInterpolationStateParams) => CreateNumericInterpolationStateResult;
55
- /**
56
- * Parameters describing interpolation evaluation state.
57
- * @property {NumericInterpolationState} state - State generated via {@link createNumericInterpolationState}.
58
- * @property {number} timestamp - Timestamp in milliseconds used to sample the interpolation curve.
59
- */
60
- export interface EvaluateNumericInterpolationParams {
61
- state: NumericInterpolationState;
62
- timestamp: number;
63
- }
64
- /**
65
- * Result of evaluating a numeric interpolation at a specific timestamp.
66
- * @property {number} value - Current interpolated value (or final value after completion).
67
- * @property {boolean} completed - Indicates whether interpolation reached the end.
68
- * @property {number} effectiveStartTimestamp - Start timestamp applied during evaluation.
69
- */
70
- export interface EvaluateNumericInterpolationResult {
71
- readonly value: number;
72
- readonly completed: boolean;
73
- readonly effectiveStartTimestamp: number;
74
- }
75
- /**
76
- * Evaluates a numeric interpolation against the provided timestamp.
77
- * @param {EvaluateNumericInterpolationParams} params - Inputs containing interpolation state and sample timestamp.
78
- * @returns {EvaluateNumericInterpolationResult} Current value, completion flag, and effective start time.
79
- */
80
- export declare const evaluateNumericInterpolation: (params: EvaluateNumericInterpolationParams) => EvaluateNumericInterpolationResult;