@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
23 lines (22 loc) • 1.16 kB
TypeScript
import type GraphicOrigin from "./GraphicOrigin.js";
import type VoxelLayer from "../layers/VoxelLayer.js";
/**
* Provides information about the [VoxelLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VoxelLayer/) from which a graphic originates.
* The [origin](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#origin) information may be available when a graphic is returned from methods such as
* [hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest).
*
* @since 5.0
* @see [SceneView.hitTest()](https://developers.arcgis.com/javascript/latest/references/core/views/SceneView/#hitTest)
* @see [Scene component hitTest()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#hitTest)
*/
export default class VoxelGraphicOrigin extends GraphicOrigin {
constructor(layer: VoxelLayer);
/** A layer from which a graphic originates. */
readonly layer: VoxelLayer;
/**
* Indicates the type of layer the graphic originated from.
*
* @default "voxel"
*/
readonly type: VoxelLayer["type"];
}