소스 검색

Units: Add angle units, Arc Minutes and Seconds (#16271)

Dripoul 6 년 전
부모
커밋
fec7c3e133
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      packages/grafana-ui/src/utils/valueFormats/categories.ts

+ 2 - 0
packages/grafana-ui/src/utils/valueFormats/categories.ts

@@ -54,6 +54,8 @@ export const getCategories = (): ValueFormatCategory[] => [
       { name: 'Degrees (°)', id: 'degree', fn: toFixedUnit('°') },
       { name: 'Radians', id: 'radian', fn: toFixedUnit('rad') },
       { name: 'Gradian', id: 'grad', fn: toFixedUnit('grad') },
+      { name: 'Arc Minutes', id: 'arcmin', fn: toFixedUnit('arcmin') },
+      { name: 'Arc Seconds', id: 'arcsec', fn: toFixedUnit('arcsec') },
     ],
   },
   {