Skip to content
import { isKnowledgeGraphGraphicOrigin } from "@arcgis/core/graphic/isKnowledgeGraphGraphicOrigin.js";
Since
ArcGIS Maps SDK for JavaScript 5.0

Provides a utility function to determine whether a graphic's origin is a KnowledgeGraphGraphicOrigin.

Functions

isKnowledgeGraphGraphicOrigin

Function

Utility function that determines whether a graphic’s origin is a KnowledgeGraphGraphicOrigin.

Signature
isKnowledgeGraphGraphicOrigin (origin: GraphicOrigin | null | undefined): origin is KnowledgeGraphGraphicOrigin
Parameters
ParameterTypeDescriptionRequired
origin

The graphic origin to check.

Returns
origin is KnowledgeGraphGraphicOrigin

Returns true if the graphic origin is of type KnowledgeGraphGraphicOrigin, false otherwise.