import type { ObstructionId, SpaceId } from '../types/core.js'; import type { Feature, FeatureCollection, Point } from '../types/geojson.js'; import type { AreaId } from './area.js'; /** * An image and some transformations that may be applied to superimpose the image onto a map. * * Consider that the width and height here may represent an aspect ratio that does not conform to the aspect ratio of * the original image. You may have to do some image scaling to be able to meet the specified width and height. */ export type ImageProperties = { /** * The path to the image. This will be a remote URL. */ path: string; /** * The width of the image when represented on the map, in meters. * * @minimum 0 */ width: number; /** * The height of the image when represented on the map, in meters. * * @minimum 0 */ height: number; /** * Rotation in degrees, about the center of the image. North is 0, east is 90. * * @minimum 0 * @maximum 360 */ rotation: number; }; export type AnchoredImageProperties = ImageProperties & { /** * The geometry to which this image belongs. It will be displayed on top of it. */ anchorId: SpaceId | ObstructionId | AreaId; }; export type FloatingImageProperties = ImageProperties & { /** * How high to position the image, in meters, relative to the ground plane. * @minimum 0 */ verticalOffset: number; }; export type AnchoredImageFeature = Feature; export type FloatingImageFeature = Feature; export type FloorImageProperties = AnchoredImageProperties | FloatingImageProperties; export type FloorImageFeature = Feature; /** * A collection of images to be displayed on a map. They are either attached to a polygon or are floating in space. */ export type FloorImageFeatureCollection = FeatureCollection; //# sourceMappingURL=floorImage.d.ts.map