UNPKG

@goongmaps/goong-map-react

Version:

A fork of react-map-gl. React components for Goong JS

35 lines (33 loc) 605 B
/** * Flowtype definitions for dynamic-position * Generated by Flowgen from a Typescript Definition * Flowgen v1.21.0 */ export type PositionType = | "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "right"; declare export var ANCHOR_POSITION: { [key: PositionType]: { x: number, y: number, ... }, ... }; declare export function getDynamicPosition(opts: { x: number, y: number, width: number, height: number, selfWidth: number, selfHeight: number, anchor: PositionType, padding: number, ... }): PositionType;