UNPKG

@grafana/ui

Version:
23 lines (18 loc) 542 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var data = require('@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 !== data.FieldType.geo) { return false; } return field.values.some(isGeometry); }); } exports.hasGeoCell = hasGeoCell; exports.isGeometry = isGeometry; //# sourceMappingURL=utils.cjs.map