@kepler.gl/types 3.3.0-alpha.20 → 3.3.0-alpha.21
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/layers.d.ts +5 -1
- package/package.json +1 -1
- package/reducers.d.ts +6 -0
package/layers.d.ts
CHANGED
|
@@ -266,7 +266,7 @@ export type VisConfig = {
|
|
|
266
266
|
) => boolean;
|
|
267
267
|
|
|
268
268
|
allowCustomValue?: boolean;
|
|
269
|
-
/**
|
|
269
|
+
/** Label for the custom-value edit button when allowCustomValue is true. */
|
|
270
270
|
customInputLabel?: string;
|
|
271
271
|
};
|
|
272
272
|
|
|
@@ -467,8 +467,10 @@ export type LayerTextConfig = {
|
|
|
467
467
|
};
|
|
468
468
|
|
|
469
469
|
export type LayerCallbacks = {
|
|
470
|
+
onLayerError?: (idx: number, error: Error) => void;
|
|
470
471
|
onLayerHover?: (idx: number, value: any) => void;
|
|
471
472
|
onSetLayerDomain?: (idx: number, value: any) => void;
|
|
473
|
+
onLayerVisConfigChange?: (idx: number, value: Partial<LayerVisConfig>) => void;
|
|
472
474
|
onFilteredItemsChange?: (
|
|
473
475
|
idx: number,
|
|
474
476
|
event: {
|
|
@@ -489,8 +491,10 @@ export type LayerCallbacks = {
|
|
|
489
491
|
};
|
|
490
492
|
|
|
491
493
|
export type BindedLayerCallbacks = {
|
|
494
|
+
onLayerError?: (error: Error) => void;
|
|
492
495
|
onLayerHover?: (value: any) => void;
|
|
493
496
|
onSetLayerDomain?: (value: any) => void;
|
|
497
|
+
onLayerVisConfigChange?: (value: Partial<LayerVisConfig>) => void;
|
|
494
498
|
onFilteredItemsChange?: (event: {id: string; count: number}) => void;
|
|
495
499
|
onWMSFeatureInfo?: (props: {
|
|
496
500
|
featureInfo: Array<{name: string; value: string}> | string | null;
|
package/package.json
CHANGED
package/reducers.d.ts
CHANGED
|
@@ -660,7 +660,13 @@ export type UiTheme = string;
|
|
|
660
660
|
|
|
661
661
|
export type PanelListView = string;
|
|
662
662
|
|
|
663
|
+
/** Transient playback requests; never serialized with the saved map. */
|
|
664
|
+
export type CameraTourPlaybackRequest =
|
|
665
|
+
| {action: 'play' | 'pause'}
|
|
666
|
+
| {action: 'seek'; elapsedMs: number};
|
|
667
|
+
|
|
663
668
|
export type UiState = {
|
|
669
|
+
cameraTourPlaybackRequest?: CameraTourPlaybackRequest & {sequence: number};
|
|
664
670
|
readOnly: boolean;
|
|
665
671
|
activeSidePanel: string | null;
|
|
666
672
|
currentModal: string | null;
|