@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
25 lines (24 loc) • 1.63 kB
TypeScript
import type GraphicOrigin from "./GraphicOrigin.js";
import type LinkChartLayer from "../layers/LinkChartLayer.js";
import type KnowledgeGraphSublayer from "../layers/knowledgeGraph/KnowledgeGraphSublayer.js";
/**
* Provides information about the [LinkChartLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/LinkChartLayer/) from which a graphic originates.
* Also provides access to the [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/) that contains the graphic.
* 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/MapView/#hitTest) or [queryFeatures()](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/#queryFeatures).
*
* @since 5.0
*/
export default class LinkChartGraphicOrigin extends GraphicOrigin {
constructor(layer: LinkChartLayer, sublayer: KnowledgeGraphSublayer);
/** A layer from which a graphic originates. */
readonly layer: LinkChartLayer;
/** The [KnowledgeGraphSublayer](https://developers.arcgis.com/javascript/latest/references/core/layers/knowledgeGraph/KnowledgeGraphSublayer/) from which a graphic originates. */
readonly sublayer: KnowledgeGraphSublayer;
/**
* Indicates the type of layer the graphic originated from.
*
* @default "link-chart"
*/
readonly type: LinkChartLayer["type"];
}