| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- // NOTICE: This file is generated by Rollup. To modify it,
- // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
- 'use strict';
- const uniteSets = require('../utils/uniteSets.cjs');
- /** @type {ReadonlySet<string>} */
- const lengthUnits = new Set([
- // Font-relative length units
- 'cap',
- 'ch',
- 'em',
- 'ex',
- 'ic',
- 'lh',
- 'rcap',
- 'rch',
- 'rem',
- 'rex',
- 'ric',
- 'rlh',
- // Viewport-percentage lengths
- 'dvb',
- 'dvh',
- 'dvi',
- 'dvmax',
- 'dvmin',
- 'dvw',
- 'lvb',
- 'lvh',
- 'lvi',
- 'lvmax',
- 'lvmin',
- 'lvw',
- 'svb',
- 'svh',
- 'svi',
- 'svmax',
- 'svmin',
- 'svw',
- 'vb',
- 'vh',
- 'vi',
- 'vw',
- 'vmin',
- 'vmax',
- 'vm',
- // Absolute length units
- 'px',
- 'mm',
- 'cm',
- 'in',
- 'pt',
- 'pc',
- 'q',
- 'mozmm',
- // Flexible length units
- 'fr',
- // Container query units
- 'cqw',
- 'cqh',
- 'cqi',
- 'cqb',
- 'cqmin',
- 'cqmax',
- ]);
- /** @type {ReadonlySet<string>} */
- const resolutionUnits = new Set(['dpi', 'dpcm', 'dppx', 'x']);
- /** @type {ReadonlySet<string>} */
- const units = uniteSets(lengthUnits, resolutionUnits, [
- // Relative length units
- '%',
- // Time length units
- 's',
- 'ms',
- // Angle
- 'deg',
- 'grad',
- 'turn',
- 'rad',
- // Frequency
- 'Hz',
- 'kHz',
- ]);
- exports.lengthUnits = lengthUnits;
- exports.resolutionUnits = resolutionUnits;
- exports.units = units;
|