@kepler.gl/utils 3.3.0-alpha.26 → 3.3.0-alpha.27

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.
@@ -0,0 +1,32 @@
1
+ import type { LayerAnimatableProp, LayerPropertyTransition, RGBColor } from '@kepler.gl/types';
2
+ type PropertyTransitionConfig = {
3
+ propertyTransitions?: Record<string, LayerPropertyTransition[]>;
4
+ };
5
+ type AnimatableLayer = {
6
+ config: PropertyTransitionConfig & {
7
+ isVisible: boolean;
8
+ };
9
+ animatableProps?: readonly LayerAnimatableProp[];
10
+ };
11
+ export declare const DEFAULT_LAYER_ANIMATABLE_PROPS: readonly Extract<LayerAnimatableProp, {
12
+ type?: 'number';
13
+ }>[];
14
+ /** Preserve unknown properties for forward compatibility, but never unsafe object keys. */
15
+ export declare function normalizeLayerPropertyTransitions(value: unknown): Record<string, LayerPropertyTransition[]> | undefined;
16
+ export declare function getLayerPropertyTransitions(config: PropertyTransitionConfig, name: string, definition?: LayerAnimatableProp): LayerPropertyTransition[];
17
+ export declare function getLayerOpacityFactor(config: PropertyTransitionConfig, timeMs?: number | null): number;
18
+ export declare function getLayerAnimationTracks(layer: AnimatableLayer): {
19
+ property: LayerAnimatableProp;
20
+ transitions: LayerPropertyTransition[];
21
+ }[];
22
+ export declare function getLayerAnimationDuration(layers: readonly AnimatableLayer[]): number;
23
+ export declare function getLayerAnimationOpacityFactor(layer: AnimatableLayer, timeMs?: number | null): number;
24
+ /** Overrides are transient; opacity remains a separate authored-opacity multiplier. */
25
+ export declare function getLayerAnimatedConfig(layer: AnimatableLayer, timeMs?: number | null): {
26
+ color?: RGBColor;
27
+ visConfig?: Record<string, number | RGBColor>;
28
+ };
29
+ export declare function getAnnotationOpacityDuration(annotations: readonly (PropertyTransitionConfig & {
30
+ isVisible: boolean;
31
+ })[]): number;
32
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/utils",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.3.0-alpha.26",
4
+ "version": "3.3.0-alpha.27",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/cjs/index.js",
@@ -29,9 +29,9 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@deck.gl/core": "^9.4.1",
32
- "@kepler.gl/common-utils": "3.3.0-alpha.26",
33
- "@kepler.gl/constants": "3.3.0-alpha.26",
34
- "@kepler.gl/types": "3.3.0-alpha.26",
32
+ "@kepler.gl/common-utils": "3.3.0-alpha.27",
33
+ "@kepler.gl/constants": "3.3.0-alpha.27",
34
+ "@kepler.gl/types": "3.3.0-alpha.27",
35
35
  "@loaders.gl/gis": "^4.4.5",
36
36
  "@luma.gl/constants": "^9.4.2",
37
37
  "@luma.gl/core": "^9.4.2",