import type Graphic from "../../Graphic.js"; import type Collection from "../../core/Collection.js"; import type SketchLayer from "../../layers/SketchLayer.js"; import type LayerView from "./LayerView.js"; import type { ResourceHandle } from "../../core/Handles.js"; import type { ObjectId } from "../types.js"; import type { LayerViewHighlightOptions } from "./types.js"; /** * Represents the view of a [SketchLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SketchLayer/) in a [MapView](https://developers.arcgis.com/javascript/latest/references/core/views/MapView/). * * @since 5.2 * @beta * @see [SketchLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/SketchLayer/) */ export default abstract class SketchLayerView extends LayerView { /** The layer being viewed. */ get layer(): SketchLayer; /** * Highlights graphics in the layer view. * * @param target - The graphics or object IDs to highlight. * @param options - Options for the highlight. * @returns A handle to remove the highlight. * @since 5.2 */ abstract highlight(target: Graphic | Graphic[] | ObjectId | ObjectId[], options?: LayerViewHighlightOptions): ResourceHandle; /** * Returns the [graphics](https://developers.arcgis.com/javascript/latest/references/core/Graphic/) available for drawing in the layer view. * * @returns A [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) of graphics available in the layer view. * @since 5.2 */ abstract queryGraphics(): Promise>; }