mapillary-js
Version:
A WebGL interactive street imagery library
37 lines (36 loc) • 801 B
text/typescript
/**
* Interface for the popup offset with respect to its anchor point.
*
* @description An object of number arrays specifying an offset for
* each float direction. Negative offsets indicate left and up.
*
* @interface
*
* @example
* ```js
* var offset = = {
* bottom: [0, 10],
* bottomLeft: [-10, 10],
* bottomRight: [10, 10],
* center: [0, 0],
* left: [-10, 0],
* right: [10, 0],
* top: [0, -10],
* topLeft: [-10, -10],
* topRight: [10, -10],
* }
*
* var popup = new Popup({ offset: offset });
* ```
*/
export interface PopupOffset {
bottom: number[];
bottomLeft: number[];
bottomRight: number[];
center: number[];
left: number[];
right: number[];
top: number[];
topLeft: number[];
topRight: number[];
}