UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

328 lines (327 loc) 15.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.units = void 0; var type_1 = require("../../../constants/language/unit/type"); /** * 被注释的单位体系为暂不支持的单位体系,单不排除以后会支持 */ exports.units = [ { label: type_1.UnitLocale.common.title, value: 'none', children: [ { label: type_1.UnitLocale.common.none, value: 'none' }, { label: type_1.UnitLocale.common.short, value: 'short' }, { label: type_1.UnitLocale.common.percent, value: 'percent' }, { label: type_1.UnitLocale.common.percentunit, value: 'percentunit' }, { label: type_1.UnitLocale.common.humidity, value: 'humidity' }, { label: type_1.UnitLocale.common.d_b, value: 'dB' }, { label: type_1.UnitLocale.common.hex0x, value: 'hex0x' }, { label: type_1.UnitLocale.common.hex, value: 'hex' }, { label: type_1.UnitLocale.common.sci, value: 'sci' }, { label: type_1.UnitLocale.common.locale, value: 'locale' }, { label: type_1.UnitLocale.common.thousand_separate, value: 'thousand' } ] }, // { // label: '货币', // value: 'currency', // children: [ // { label: 'Dollars ($)', value: 'currencyUSD' }, // { label: 'Pounds (£)', value: 'currencyGBP' }, // { label: 'Euro (€)', value: 'currencyEUR' }, // { label: 'Yen (¥)', value: 'currencyJPY' }, // { label: 'Rubles (₽)', value: 'currencyRUB' }, // { label: 'Hryvnias (₴)', value: 'currencyUAH' }, // { label: 'Real (R$)', value: 'currencyBRL' }, // { label: 'Danish Krone (kr)', value: 'currencyDKK' }, // { label: 'Icelandic Króna (kr)', value: 'currencyISK' }, // { label: 'Norwegian Krone (kr)', value: 'currencyNOK' }, // { label: 'Swedish Krona (kr)', value: 'currencySEK' }, // { label: 'Czech koruna (czk)', value: 'currencyCZK' }, // { label: 'Swiss franc (CHF)', value: 'currencyCHF' }, // { label: 'Polish Złoty (PLN)', value: 'currencyPLN' }, // { label: 'Bitcoin (฿)', value: 'currencyBTC' } // ] // }, { label: type_1.UnitLocale.time.title, value: 'time', children: [ { label: type_1.UnitLocale.time.hertz, value: 'hertz' }, { label: type_1.UnitLocale.time.ns, value: 'ns' }, { label: type_1.UnitLocale.time.µs, value: 'µs' }, { label: type_1.UnitLocale.time.ms, value: 'ms' }, { label: type_1.UnitLocale.time.s, value: 's' }, { label: type_1.UnitLocale.time.m, value: 'm' }, { label: type_1.UnitLocale.time.h, value: 'h' }, { label: type_1.UnitLocale.time.d, value: 'd' }, { label: type_1.UnitLocale.time.dtdurationms, value: 'dtdurationms' }, { label: type_1.UnitLocale.time.dtdurations, value: 'dtdurations' }, { label: type_1.UnitLocale.time.dthms, value: 'dthms' } ] }, { label: type_1.UnitLocale.time_china.title, value: 'timeZh', children: [ { label: type_1.UnitLocale.time_china.hertz_zh, value: 'hertzZh' }, { label: type_1.UnitLocale.time_china.ns_zh, value: 'nsZh' }, { label: type_1.UnitLocale.time_china.µs_zh, value: 'µsZh' }, { label: type_1.UnitLocale.time_china.ms_zh, value: 'msZh' }, { label: type_1.UnitLocale.time_china.s_zh, value: 'sZh' }, { label: type_1.UnitLocale.time_china.m_zh, value: 'mZh' }, { label: type_1.UnitLocale.time_china.h_zh, value: 'hZh' }, { label: type_1.UnitLocale.time_china.d_zh, value: 'dZh' }, { label: type_1.UnitLocale.time_china.dtdurationms_zh, value: 'dtdurationmsZh' }, { label: type_1.UnitLocale.time_china.dtdurations_zh, value: 'dtdurationsZh' }, { label: type_1.UnitLocale.time_china.dthms_zh, value: 'dthmsZh' } ] }, // { // label: 'date & time', // value: 'date & time', // children: [ // { label: 'YYYY-MM-DD HH:mm:ss', value: 'dateTimeAsIso' }, // { label: 'DD/MM/YYYY h:mm:ss a', value: 'dateTimeAsUS' }, // { label: 'From Now', value: 'dateTimeFromNow' } // ] // }, { label: type_1.UnitLocale.iec.title, value: 'data (IEC)', children: [ { label: type_1.UnitLocale.iec.bits, value: 'bits' }, { label: type_1.UnitLocale.iec.bytes, value: 'bytes' }, { label: type_1.UnitLocale.iec.kbytes, value: 'kbytes' }, { label: type_1.UnitLocale.iec.mbytes, value: 'mbytes' }, { label: type_1.UnitLocale.iec.gbytes, value: 'gbytes' } ] }, // { // label: '存储 (Metric)', // value: 'data (Metric)', // children: [ // { label: 'bits', value: 'decbits' }, // { label: 'bytes', value: 'decbytes' }, // { label: 'kilobytes', value: 'deckbytes' }, // { label: 'megabytes', value: 'decmbytes' }, // { label: 'gigabytes', value: 'decgbytes' } // ] // }, { label: type_1.UnitLocale.rate.title, value: 'data rate', children: [ { label: type_1.UnitLocale.rate.pps, value: 'pps' }, { label: type_1.UnitLocale.rate.bps, value: 'bps' }, { label: type_1.UnitLocale.rate.Bps, value: 'Bps' }, { label: type_1.UnitLocale.rate.Kbits, value: 'Kbits' }, { label: type_1.UnitLocale.rate.KBs, value: 'KBs' }, { label: type_1.UnitLocale.rate.Mbits, value: 'Mbits' }, { label: type_1.UnitLocale.rate.MBs, value: 'MBs' }, { label: type_1.UnitLocale.rate.Gbits, value: 'Gbits' }, { label: type_1.UnitLocale.rate.GBs, value: 'GBs' } ] }, // { // label: 'hash rate', // value: 'hash rate', // children: [ // { label: 'hashes/sec', value: 'Hs' }, // { label: 'kilohashes/sec', value: 'KHs' }, // { label: 'megahashes/sec', value: 'MHs' }, // { label: 'gigahashes/sec', value: 'GHs' }, // { label: 'terahashes/sec', value: 'THs' }, // { label: 'petahashes/sec', value: 'PHs' }, // { label: 'exahashes/sec', value: 'EHs' } // ] // }, { label: type_1.UnitLocale.throughput.title, value: 'throughput', children: [ { label: 'ops/sec (ops)', value: 'ops' }, { label: 'requests/sec (rps)', value: 'reqps' }, { label: 'reads/sec (rps)', value: 'rps' }, { label: 'writes/sec (wps)', value: 'wps' }, { label: 'I/O ops/sec (iops)', value: 'iops' }, { label: 'ops/min (opm)', value: 'opm' }, { label: 'reads/min (rpm)', value: 'rpm' }, { label: 'writes/min (wpm)', value: 'wpm' } ] }, { label: type_1.UnitLocale.length.title, value: 'length', children: [ { label: type_1.UnitLocale.length.lengthmm, value: 'lengthmm' }, { label: type_1.UnitLocale.length.lengthm, value: 'lengthm' }, { label: type_1.UnitLocale.length.lengthft, value: 'lengthft' }, { label: type_1.UnitLocale.length.lengthkm, value: 'lengthkm' }, { label: type_1.UnitLocale.length.lengthmi, value: 'lengthmi' } ] }, { label: type_1.UnitLocale.area.title, value: 'area', children: [ { label: type_1.UnitLocale.area.areaM2, value: 'areaM2' }, { label: type_1.UnitLocale.area.areaF2, value: 'areaF2' }, { label: type_1.UnitLocale.area.areaMI2, value: 'areaMI2' } ] }, { label: type_1.UnitLocale.mas.title, value: 'mass', children: [ { label: type_1.UnitLocale.mas.massmg, value: 'massmg' }, { label: type_1.UnitLocale.mas.massg, value: 'massg' }, { label: type_1.UnitLocale.mas.masskg, value: 'masskg' }, { label: type_1.UnitLocale.mas.masst, value: 'masst' } ] }, { label: type_1.UnitLocale.velocity.title, value: 'velocity', children: [ { label: type_1.UnitLocale.velocity.velocityms, value: 'velocityms' }, { label: type_1.UnitLocale.velocity.velocitykmh, value: 'velocitykmh' }, { label: type_1.UnitLocale.velocity.velocitymph, value: 'velocitymph' }, { label: type_1.UnitLocale.velocity.velocityknot, value: 'velocityknot' } ] }, { label: type_1.UnitLocale.volume.title, value: 'volume', children: [ { label: type_1.UnitLocale.volume.mlitre, value: 'mlitre' }, { label: type_1.UnitLocale.volume.litre, value: 'litre' }, { label: type_1.UnitLocale.volume.m3, value: 'm3' }, { label: type_1.UnitLocale.volume.Nm3, value: 'Nm3' }, { label: type_1.UnitLocale.volume.dm3, value: 'dm3' }, { label: type_1.UnitLocale.volume.gallons, value: 'gallons' } ] }, { label: type_1.UnitLocale.energy.title, value: 'energy', children: [ { label: type_1.UnitLocale.energy.watt, value: 'watt' }, { label: type_1.UnitLocale.energy.kwatt, value: 'kwatt' }, { label: type_1.UnitLocale.energy.mwatt, value: 'mwatt' }, { label: type_1.UnitLocale.energy.Wm2, value: 'Wm2' }, { label: type_1.UnitLocale.energy.voltamp, value: 'voltamp' }, { label: type_1.UnitLocale.energy.kvoltamp, value: 'kvoltamp' }, { label: type_1.UnitLocale.energy.voltampreact, value: 'voltampreact' }, { label: type_1.UnitLocale.energy.kvoltampreact, value: 'kvoltampreact' }, { label: type_1.UnitLocale.energy.watth, value: 'watth' }, { label: type_1.UnitLocale.energy.kwatth, value: 'kwatth' }, { label: type_1.UnitLocale.energy.kwattm, value: 'kwattm' }, { label: type_1.UnitLocale.energy.joule, value: 'joule' }, { label: type_1.UnitLocale.energy.ev, value: 'ev' }, { label: type_1.UnitLocale.energy.amp, value: 'amp' }, { label: type_1.UnitLocale.energy.kamp, value: 'kamp' }, { label: type_1.UnitLocale.energy.mamp, value: 'mamp' }, { label: type_1.UnitLocale.energy.volt, value: 'volt' }, { label: type_1.UnitLocale.energy.kvolt, value: 'kvolt' }, { label: type_1.UnitLocale.energy.mvolt, value: 'mvolt' }, { label: type_1.UnitLocale.energy.dBm, value: 'dBm' }, { label: type_1.UnitLocale.energy.ohm, value: 'ohm' }, { label: type_1.UnitLocale.energy.lumens, value: 'lumens' } ] }, { label: type_1.UnitLocale.temperature.title, value: 'temperature', children: [ { label: type_1.UnitLocale.temperature.celsius, value: 'celsius' }, { label: type_1.UnitLocale.temperature.farenheit, value: 'farenheit' }, { label: type_1.UnitLocale.temperature.kelvin, value: 'kelvin' } ] }, { label: type_1.UnitLocale.pressure.title, value: 'pressure', children: [ { label: type_1.UnitLocale.pressure.pressurembar, value: 'pressurembar' }, { label: type_1.UnitLocale.pressure.pressurebar, value: 'pressurebar' }, { label: type_1.UnitLocale.pressure.pressurekbar, value: 'pressurekbar' }, { label: type_1.UnitLocale.pressure.pressurehpa, value: 'pressurehpa' }, { label: type_1.UnitLocale.pressure.pressurekpa, value: 'pressurekpa' }, { label: type_1.UnitLocale.pressure.pressurehg, value: 'pressurehg' }, { label: type_1.UnitLocale.pressure.pressurepsi, value: 'pressurepsi' } ] }, { label: type_1.UnitLocale.force.title, value: 'force', children: [ { label: type_1.UnitLocale.force.forceNm, value: 'forceNm' }, { label: type_1.UnitLocale.force.forcekNm, value: 'forcekNm' }, { label: type_1.UnitLocale.force.forceN, value: 'forceN' }, { label: type_1.UnitLocale.force.forcekN, value: 'forcekN' } ] }, { label: type_1.UnitLocale.flow.title, value: 'flow', children: [ { label: type_1.UnitLocale.flow.flowgpm, value: 'flowgpm' }, { label: type_1.UnitLocale.flow.flowcms, value: 'flowcms' }, { label: type_1.UnitLocale.flow.flowcfs, value: 'flowcfs' }, { label: type_1.UnitLocale.flow.flowcfm, value: 'flowcfm' }, { label: type_1.UnitLocale.flow.litreh, value: 'litreh' }, { label: type_1.UnitLocale.flow.flowlpm, value: 'flowlpm' }, { label: type_1.UnitLocale.flow.flowmlpm, value: 'flowmlpm' } ] }, { label: type_1.UnitLocale.angle.title, value: 'angle', children: [ { label: type_1.UnitLocale.angle.degree, value: 'degree' }, { label: type_1.UnitLocale.angle.radian, value: 'radian' }, { label: type_1.UnitLocale.angle.grad, value: 'grad' } ] }, { label: type_1.UnitLocale.acceleration.title, value: 'acceleration', children: [ { label: type_1.UnitLocale.acceleration.accMS2, value: 'accMS2' }, { label: type_1.UnitLocale.acceleration.accFS2, value: 'accFS2' }, { label: type_1.UnitLocale.acceleration.accG, value: 'accG' } ] }, { label: type_1.UnitLocale.radiation.title, value: 'radiation', children: [ { label: type_1.UnitLocale.radiation.radbq, value: 'radbq' }, { label: type_1.UnitLocale.radiation.radci, value: 'radci' }, { label: type_1.UnitLocale.radiation.radgy, value: 'radgy' }, { label: type_1.UnitLocale.radiation.radrad, value: 'radrad' }, { label: type_1.UnitLocale.radiation.radsv, value: 'radsv' }, { label: type_1.UnitLocale.radiation.radrem, value: 'radrem' }, { label: type_1.UnitLocale.radiation.radexpckg, value: 'radexpckg' }, { label: type_1.UnitLocale.radiation.radr, value: 'radr' }, { label: type_1.UnitLocale.radiation.radsvh, value: 'radsvh' } ] }, { label: type_1.UnitLocale.concentration.title, value: 'concentration', children: [ { label: type_1.UnitLocale.concentration.ppm, value: 'ppm' }, { label: type_1.UnitLocale.concentration.conppb, value: 'conppb' }, { label: type_1.UnitLocale.concentration.conngm3, value: 'conngm3' }, { label: type_1.UnitLocale.concentration.conμgm3, value: 'conμgm3' }, { label: type_1.UnitLocale.concentration.conmgm3, value: 'conmgm3' }, { label: type_1.UnitLocale.concentration.congm3, value: 'congm3' } ] } ];