import { Position } from '../Core';
import { OrientationType } from './OrientationType';
import { POI } from './POI';

/**
 * Contains all the available options to create Images.
 */
export interface ImageCreateOptions {
    /**
     * POI that'll own current image
     */
    readonly poi: POI;
    /**
     * Position in WGS84 coordinates.
     * @see {@link Position}
     */
    readonly position: Position;
    /**
     * Width of the image in meters.
     */
    readonly width: number;
    /**
     * Height of the image in meters.
     */
    readonly height?: number;
    /**
     * Rotation, in degrees, of the image that'll be used if its orientationType is 'fixed'.
     * Note that angle is related to map's orientation.
     */
    readonly rotation?: number;
    /**
     * Url of the file to be used for current image.
     * It can be relative to provided baseURL.
     * It can be absolute.
     * It can be a web URL.
     * It can be a data URL.
     */
    readonly url: string;
    /**
     * Behavior of the image relative to the camera
     * @see {@link OrientationType}
     */
    readonly orientationType?: OrientationType;
}
