浏览代码

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') },
     ],
   },
   {