@grafana/ui
Version:
Grafana Components Library
18 lines (15 loc) • 433 B
JavaScript
import { FieldType } from '@grafana/data';
;
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