maplibre-gl-layers 0.17.0 → 0.19.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/dist/SpriteLayer.d.ts +3 -3
- package/dist/config.d.ts +2 -2
- package/dist/const.d.ts +7 -4
- package/dist/default.d.ts +2 -2
- package/dist/gl/atlas.d.ts +2 -2
- package/dist/gl/hitTest.d.ts +3 -3
- package/dist/gl/mouseEvents.d.ts +36 -0
- package/dist/gl/shader.d.ts +2 -2
- package/dist/gl/text.d.ts +2 -2
- package/dist/gl/tracking.d.ts +36 -0
- package/dist/host/calculationHost.d.ts +15 -13
- package/dist/host/mapLibreProjectionHost.d.ts +2 -2
- package/dist/host/projectionHost.d.ts +2 -2
- package/dist/host/runtime.d.ts +2 -2
- package/dist/host/wasmCalculationHost.d.ts +7 -7
- package/dist/host/wasmHost.d.ts +2 -2
- package/dist/host/wasmProjectionHost.d.ts +2 -2
- package/dist/index.cjs +1144 -1108
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +1144 -1108
- package/dist/index.mjs.map +1 -1
- package/dist/internalTypes.d.ts +18 -46
- package/dist/interpolation/degreeInterpolation.d.ts +8 -40
- package/dist/interpolation/distanceInterpolation.d.ts +9 -23
- package/dist/interpolation/easing.d.ts +2 -2
- package/dist/interpolation/interpolationChannels.d.ts +18 -6
- package/dist/interpolation/locationInterpolation.d.ts +30 -0
- package/dist/interpolation/rotationInterpolation.d.ts +2 -3
- package/dist/types.d.ts +57 -53
- package/dist/utils/color.d.ts +2 -2
- package/dist/utils/image.d.ts +2 -2
- package/dist/utils/looseQuadTree.d.ts +2 -2
- package/dist/utils/math.d.ts +38 -58
- package/dist/utils/utils.d.ts +2 -2
- package/dist/wasm/config.json.d.ts +2 -2
- package/package.json +6 -6
- package/dist/interpolation/interpolation.d.ts +0 -48
package/dist/SpriteLayer.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { SpriteLayerInterface, SpriteLayerOptions, SpriteLocation, SpriteImageDefinitionInit } from './types';
|
|
@@ -27,7 +27,7 @@ export declare const applyAutoRotation: <T>(sprite: InternalSpriteCurrentState<T
|
|
|
27
27
|
* @param {boolean} invalidated - Initially invalidate state.
|
|
28
28
|
* @returns {InternalSpriteImageState} Normalized internal state ready for rendering.
|
|
29
29
|
*/
|
|
30
|
-
export declare const createImageStateFromInit: (imageInit: SpriteImageDefinitionInit, subLayer: number, order: number, originReference: SpriteOriginReference, invalidated: boolean) => InternalSpriteImageState;
|
|
30
|
+
export declare const createImageStateFromInit: (imageInit: SpriteImageDefinitionInit, subLayer: number, order: number, originReference: SpriteOriginReference, invalidated: boolean, spriteAutoRotationDeg?: number) => InternalSpriteImageState;
|
|
31
31
|
/**
|
|
32
32
|
* Factory that creates the MapLibre layer interface for the sprite layer.
|
|
33
33
|
* Implements the CustomLayerInterface lifecycle (init -> render -> dispose), packing thousands
|
package/dist/config.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/** Debug flag */
|
package/dist/const.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { Rect } from './utils/looseQuadTree';
|
|
12
|
-
import { SpriteAnchor,
|
|
12
|
+
import { SpriteAnchor, SpriteTextGlyphHorizontalAlign } from './types';
|
|
13
13
|
import { RgbaColor } from './internalTypes';
|
|
14
14
|
/** Default sprite anchor centered at the image origin. */
|
|
15
15
|
export declare const DEFAULT_ANCHOR: Readonly<SpriteAnchor>;
|
|
16
16
|
/** Default image offset applied when none is provided. */
|
|
17
|
-
export declare const DEFAULT_IMAGE_OFFSET:
|
|
17
|
+
export declare const DEFAULT_IMAGE_OFFSET: {
|
|
18
|
+
readonly offsetMeters: 0;
|
|
19
|
+
readonly offsetDeg: 0;
|
|
20
|
+
};
|
|
18
21
|
export declare const DEFAULT_TEXT_GLYPH_FONT_FAMILY = "sans-serif";
|
|
19
22
|
export declare const DEFAULT_TEXT_GLYPH_FONT_STYLE: 'normal' | 'italic';
|
|
20
23
|
export declare const DEFAULT_TEXT_GLYPH_FONT_WEIGHT = "normal";
|
package/dist/default.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { SpriteScalingOptions, SpriteTextureFilteringOptions } from './types';
|
package/dist/gl/atlas.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { Deferred } from 'async-primitives';
|
package/dist/gl/hitTest.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { Map as MapLibreMap } from 'maplibre-gl';
|
|
@@ -48,7 +48,7 @@ export interface HitTestController<T> {
|
|
|
48
48
|
readonly refreshSpriteHitTestBounds: (projectionHost: ProjectionHost, sprite: Readonly<InternalSpriteCurrentState<T>>) => void;
|
|
49
49
|
readonly findTopmostHitEntry: (point: SpriteScreenPoint, map: MapLibreMap | undefined) => HitTestEntry<T> | undefined;
|
|
50
50
|
readonly resolveHitTestResult: (nativeEvent: MouseEvent | PointerEvent | TouchEvent, canvasElement: HTMLCanvasElement | undefined, map: MapLibreMap | undefined) => HitTestResult<T> | undefined;
|
|
51
|
-
readonly
|
|
51
|
+
readonly setHitTestDetection: (enabled: boolean) => boolean;
|
|
52
52
|
readonly isHitTestEnabled: () => boolean;
|
|
53
53
|
}
|
|
54
54
|
export declare const createHitTestController: <T>({ images, getResolvedScaling, }: HitTestControllerParams) => HitTestController<T>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* name: maplibre-gl-layers
|
|
3
|
+
* version: 0.19.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Releasable } from '../internalTypes';
|
|
12
|
+
import { SpriteLayerEventListener, SpriteLayerEventMap, SpriteScreenPoint, SpriteImageState, SpriteCurrentState } from '../types';
|
|
13
|
+
import { HitTestEntry } from './hitTest';
|
|
14
|
+
export interface SpriteMouseEventsController<T> extends Releasable {
|
|
15
|
+
readonly canvasElement: HTMLCanvasElement | undefined;
|
|
16
|
+
readonly addEventListener: <K extends keyof SpriteLayerEventMap<T>>(type: K, listener: SpriteLayerEventListener<T, K>) => void;
|
|
17
|
+
readonly removeEventListener: <K extends keyof SpriteLayerEventMap<T>>(type: K, listener: SpriteLayerEventListener<T, K>) => void;
|
|
18
|
+
readonly hasSpriteClickListeners: () => boolean;
|
|
19
|
+
readonly hasSpriteHoverListeners: () => boolean;
|
|
20
|
+
readonly bindCanvas: (canvasElement: HTMLCanvasElement | undefined) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface SpriteMouseEventsControllerParams<T> {
|
|
23
|
+
readonly resolveHitTestResult: (nativeEvent: MouseEvent | PointerEvent | TouchEvent) => {
|
|
24
|
+
hitEntry: HitTestEntry<T> | undefined;
|
|
25
|
+
screenPoint: SpriteScreenPoint;
|
|
26
|
+
} | undefined;
|
|
27
|
+
readonly resolveSpriteEventPayload: (hitEntry: HitTestEntry<T> | undefined) => {
|
|
28
|
+
sprite: SpriteCurrentState<T> | undefined;
|
|
29
|
+
image: SpriteImageState | undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly updateVisibilityState: () => void;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Consolidates mouse/touch DOM hooks and SpriteLayer event listener bookkeeping.
|
|
35
|
+
*/
|
|
36
|
+
export declare const createSpriteMouseEventsController: <T>({ resolveHitTestResult, resolveSpriteEventPayload, updateVisibilityState, }: SpriteMouseEventsControllerParams<T>) => SpriteMouseEventsController<T>;
|
package/dist/gl/shader.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
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.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { SpriteTextGlyphDimensions, SpriteTextGlyphOptions } from '../types';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* name: maplibre-gl-layers
|
|
3
|
+
* version: 0.19.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: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
import { Map as MapLibreMap } from 'maplibre-gl';
|
|
12
|
+
import { Releasable } from '../internalTypes';
|
|
13
|
+
import { SpriteCurrentState } from '../types';
|
|
14
|
+
/**
|
|
15
|
+
* Sprite tracking controller.
|
|
16
|
+
* @template TTag Tag type.
|
|
17
|
+
*/
|
|
18
|
+
export interface SpriteTrackingController<TTag> extends Releasable {
|
|
19
|
+
/**
|
|
20
|
+
* Track the sprite
|
|
21
|
+
* @param sprite - Target sprite
|
|
22
|
+
* @param trackRotation - Track with rotation when true
|
|
23
|
+
*/
|
|
24
|
+
readonly trackSprite: (sprite: SpriteCurrentState<TTag>, trackRotation: boolean) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Untrack sprite.
|
|
27
|
+
*/
|
|
28
|
+
readonly untrackSprite: () => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Drives sprite tracking (centering and optional rotation) with a requestAnimationFrame loop.
|
|
32
|
+
* Pauses tracking while the user is manipulating the camera to avoid fighting user input.
|
|
33
|
+
* @template TTag Tag type.
|
|
34
|
+
* @param mapInstance - MapLibre instance.
|
|
35
|
+
*/
|
|
36
|
+
export declare const createSpriteTrackingController: <TTag>(mapInstance: MapLibreMap) => SpriteTrackingController<TTag>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { Map as MapLibreMap } from 'maplibre-gl';
|
|
12
|
-
import {
|
|
13
|
-
import { SpritePoint } from '../types';
|
|
12
|
+
import { InternalSpriteCurrentState, InternalSpriteImageState, RegisteredImage, ProjectionHost, PreparedDrawSpriteImageParams, RenderCalculationHost, PrepareDrawSpriteImageParamsBefore, PrepareDrawSpriteImageParamsAfter, RenderInterpolationParams, RenderInterpolationResult, SpriteInterpolationEvaluationResult, SpriteInterpolationState } from '../internalTypes';
|
|
13
|
+
import { SpriteLocation, SpritePoint } from '../types';
|
|
14
14
|
import { ProjectionHostParams } from './projectionHost';
|
|
15
15
|
/**
|
|
16
16
|
* Cache entry storing anchor-adjusted and raw centers for a sprite image.
|
|
@@ -37,26 +37,28 @@ interface DepthSortedItem<T> {
|
|
|
37
37
|
readonly image: InternalSpriteImageState;
|
|
38
38
|
readonly resource: Readonly<RegisteredImage>;
|
|
39
39
|
readonly depthKey: number;
|
|
40
|
+
readonly cameraDistanceMeters: number;
|
|
41
|
+
readonly distanceScaleFactor: number;
|
|
40
42
|
readonly resolveOrigin: OriginImageResolver<T>;
|
|
41
43
|
}
|
|
42
|
-
export declare const collectDepthSortedItemsInternal: <T>(projectionHost: ProjectionHost, zoom: number,
|
|
44
|
+
export declare const collectDepthSortedItemsInternal: <T>(projectionHost: ProjectionHost, zoom: number, originCenterCache: ImageCenterCache, { bucket, bucketBuffers, imageResources, resolvedScaling, clipContext, baseMetersPerPixel, drawingBufferWidth, drawingBufferHeight, pixelRatio, }: PrepareDrawSpriteImageParamsBefore<T>) => DepthSortedItem<T>[];
|
|
43
45
|
/**
|
|
44
46
|
* Prepares quad data for a single sprite image before issuing the draw call.
|
|
45
47
|
*/
|
|
46
|
-
export declare const prepareDrawSpriteImageInternal: <TTag>(projectionHost: ProjectionHost, item: DepthSortedItem<TTag>, zoom: number,
|
|
48
|
+
export declare const prepareDrawSpriteImageInternal: <TTag>(projectionHost: ProjectionHost, item: DepthSortedItem<TTag>, zoom: number, originCenterCache: ImageCenterCache, { imageResources, baseMetersPerPixel, drawingBufferWidth, drawingBufferHeight, pixelRatio, clipContext, identityScaleX, identityScaleY, identityOffsetX, identityOffsetY, screenToClipScaleX, screenToClipScaleY, screenToClipOffsetX, screenToClipOffsetY, }: PrepareDrawSpriteImageParamsAfter) => PreparedDrawSpriteImageParams<TTag> | null;
|
|
47
49
|
export declare const applyVisibilityDistanceLod: <TTag>(preparedItems: readonly PreparedDrawSpriteImageParams<TTag>[]) => void;
|
|
48
50
|
export declare const syncPreparedOpacities: <TTag>(preparedItems: readonly PreparedDrawSpriteImageParams<TTag>[]) => void;
|
|
49
51
|
export declare const filterVisiblePreparedItems: <TTag>(preparedItems: readonly PreparedDrawSpriteImageParams<TTag>[]) => PreparedDrawSpriteImageParams<TTag>[];
|
|
50
52
|
export interface ProcessInterpolationPresetRequests {
|
|
51
|
-
readonly distance: readonly
|
|
52
|
-
readonly degree: readonly
|
|
53
|
-
readonly sprite: readonly
|
|
53
|
+
readonly distance: readonly SpriteInterpolationState<number>[];
|
|
54
|
+
readonly degree: readonly SpriteInterpolationState<number>[];
|
|
55
|
+
readonly sprite: readonly SpriteInterpolationState<SpriteLocation>[];
|
|
54
56
|
}
|
|
55
57
|
export interface ProcessInterpolationsEvaluationHandlers {
|
|
56
|
-
readonly prepare?: (requests: ProcessInterpolationPresetRequests) => void;
|
|
57
|
-
readonly evaluateDistance: (
|
|
58
|
-
readonly evaluateDegree: (
|
|
59
|
-
readonly evaluateSprite: (
|
|
58
|
+
readonly prepare?: (requests: ProcessInterpolationPresetRequests, timestamp: number) => void;
|
|
59
|
+
readonly evaluateDistance: (states: readonly SpriteInterpolationState<number>[], timestamp: number) => readonly SpriteInterpolationEvaluationResult<number>[];
|
|
60
|
+
readonly evaluateDegree: (states: readonly SpriteInterpolationState<number>[], timestamp: number) => readonly SpriteInterpolationEvaluationResult<number>[];
|
|
61
|
+
readonly evaluateSprite: (states: readonly SpriteInterpolationState<SpriteLocation>[], timestamp: number) => readonly SpriteInterpolationEvaluationResult<SpriteLocation>[];
|
|
60
62
|
}
|
|
61
63
|
export declare const processInterpolationsInternal: <TTag>(params: RenderInterpolationParams<TTag>, handlers?: ProcessInterpolationsEvaluationHandlers) => RenderInterpolationResult;
|
|
62
64
|
export declare const processOpacityInterpolationsAfterPreparation: <TTag>(params: RenderInterpolationParams<TTag>, preparedItems: readonly PreparedDrawSpriteImageParams<TTag>[], handlers?: ProcessInterpolationsEvaluationHandlers) => RenderInterpolationResult;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
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.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { mat4 as Mat4 } from 'gl-matrix';
|
package/dist/host/runtime.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { SpriteLayerCalculationVariant, SpriteLayerHostOptions } from '../types';
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import {
|
|
11
|
+
import { ImageHandleBufferController, IdHandler, InternalSpriteCurrentState, InternalSpriteImageState, PreparedDrawSpriteImageParams, PrepareDrawSpriteImageParams, Releasable, RegisteredImage, RenderCalculationHost, RenderInterpolationParams, RenderInterpolationResult, SpriteOriginReference, SpriteInterpolationEvaluationResult } from '../internalTypes';
|
|
12
12
|
import { SurfaceCorner } from '../utils/math';
|
|
13
13
|
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
17
|
interface WasmProcessInterpolationResults {
|
|
18
|
-
readonly distance:
|
|
19
|
-
readonly degree:
|
|
20
|
-
readonly sprite: SpriteInterpolationEvaluationResult[];
|
|
18
|
+
readonly distance: SpriteInterpolationEvaluationResult<number>[];
|
|
19
|
+
readonly degree: SpriteInterpolationEvaluationResult<number>[];
|
|
20
|
+
readonly sprite: SpriteInterpolationEvaluationResult<SpriteLocation>[];
|
|
21
21
|
}
|
|
22
22
|
type CalculateSurfaceDepthKeyOptions = {
|
|
23
23
|
readonly indices?: readonly number[];
|
|
@@ -66,7 +66,7 @@ export declare const __wasmCalculationTestInternals: {
|
|
|
66
66
|
convertToWasmProjectionState: <TTag>(wasm: WasmHost, params: ProjectionHostParams, deps: WasmCalculationInteropDependencies<TTag>) => WritableWasmProjectionState<TTag>;
|
|
67
67
|
converToPreparedDrawImageParams: <TTag>(state: WritableWasmProjectionState<TTag>, deps: WasmCalculationInteropDependencies<TTag>, resultBuffer: BufferHolder<Float64Array>) => PreparedDrawSpriteImageParams<TTag>[];
|
|
68
68
|
prepareDrawSpriteImagesInternal: <TTag>(wasm: WasmHost, wasmState: WritableWasmProjectionState<TTag>, deps: WasmCalculationInteropDependencies<TTag>, params: PrepareDrawSpriteImageParams<TTag>) => PreparedDrawSpriteImageParams<TTag>[];
|
|
69
|
-
processInterpolationsViaWasm: (wasm: WasmHost, requests: ProcessInterpolationPresetRequests) => WasmProcessInterpolationResults;
|
|
69
|
+
processInterpolationsViaWasm: (wasm: WasmHost, requests: ProcessInterpolationPresetRequests, timestamp: number) => WasmProcessInterpolationResults;
|
|
70
70
|
processInterpolationsWithWasm: <TTag>(wasm: WasmHost, params: RenderInterpolationParams<TTag>) => RenderInterpolationResult;
|
|
71
71
|
};
|
|
72
72
|
export {};
|
package/dist/host/wasmHost.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* name: maplibre-gl-layers
|
|
3
|
-
* version: 0.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
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.
|
|
3
|
+
* version: 0.19.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:
|
|
8
|
+
* git.commit.hash: 7bc93c11d7855dedb8d60f140af4e413252c32a7
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { ProjectionHostParams } from './projectionHost';
|