UNPKG

@grafana/ui

Version:
18 lines (15 loc) 433 B
import { FieldType } from '@grafana/data'; "use strict"; function isGeometry(value) { return typeof value === "object" && value != null && "intersectsCoordinate" in value; } function hasGeoCell(frame) { return frame.fields.some((field) => { if (field.type !== FieldType.geo) { return false; } return field.values.some(isGeometry); }); } export { hasGeoCell, isGeometry }; //# sourceMappingURL=utils.mjs.map