@yandex/ymaps3-types
Version:
Types for ymaps3 maps library
18 lines (17 loc) • 482 B
TypeScript
import type { LngLat } from './lng-lat';
import type { WorldCoordinates } from './coordinates';
/**
* Generic for rectangle bounded by bottom-left and top-right coordinates
*/
export type GenericBounds<T> = [
T,
T
];
/**
* Rectangle bounded by top-left and bottom-right coordinates
*/
export type LngLatBounds = GenericBounds<LngLat>;
/**
* Rectangle bounded by top-left and bottom-right world coordinates
*/
export type WorldBounds = GenericBounds<WorldCoordinates>;