react-bkoi-gl
Version:
React components for Barikoi GL JS
19 lines (18 loc) • 660 B
TypeScript
import type { MaplibreProps } from "../maplibre/maplibre";
import type { ViewState } from "../types/common";
import type { TransformLike } from "../types/internal";
/**
* Capture a transform's current state
* @param transform
* @returns descriptor of the view state
*/
export declare function transformToViewState(tr: TransformLike): ViewState;
/**
* Applies requested view state to a transform
* @returns an object containing detected changes
*/
export declare function applyViewStateToTransform(
/** An object that describes Maplibre's camera state */
tr: TransformLike,
/** Props from Map component */
props: MaplibreProps): Partial<TransformLike>;