UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

15 lines (14 loc) 930 B
/** * Provides a utility function to determine whether a graphic's origin is a [PointCloudGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/PointCloudGraphicOrigin/). * * @since 5.0 */ import type GraphicOrigin from "./GraphicOrigin.js"; import type PointCloudGraphicOrigin from "./PointCloudGraphicOrigin.js"; /** * Utility function that determines whether a graphic’s origin is a [PointCloudGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/PointCloudGraphicOrigin/). * * @param origin - The graphic origin to check. * @returns Returns `true` if the graphic origin is of type [PointCloudGraphicOrigin](https://developers.arcgis.com/javascript/latest/references/core/graphic/PointCloudGraphicOrigin/), `false` otherwise. */ export function isPointCloudGraphicOrigin(origin: GraphicOrigin | null | undefined): origin is PointCloudGraphicOrigin;