| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /** @type {ReadonlySet<string>} */
- export const camelCaseFunctions = new Set([
- 'translateX',
- 'translateY',
- 'translateZ',
- 'scaleX',
- 'scaleY',
- 'scaleZ',
- 'rotateX',
- 'rotateY',
- 'rotateZ',
- 'skewX',
- 'skewY',
- ]);
- /** @type {ReadonlySet<string>} */
- export const colorFunctions = new Set([
- 'color',
- 'color-mix',
- 'hsl',
- 'hsla',
- 'hwb',
- 'lab',
- 'lch',
- 'oklab',
- 'oklch',
- 'rgb',
- 'rgba',
- ]);
- /** @type {ReadonlySet<string>} */
- const singleArgumentMathFunctions = new Set([
- 'abs',
- 'acos',
- 'asin',
- 'atan',
- 'calc',
- 'cos',
- 'exp',
- 'sign',
- 'sin',
- 'sqrt',
- 'tan',
- ]);
- /** @type {ReadonlySet<string>} */
- export const mathFunctions = new Set([
- ...singleArgumentMathFunctions,
- 'atan2',
- 'calc-size',
- 'clamp',
- 'hypot',
- 'log',
- 'max',
- 'min',
- 'mod',
- 'pow',
- 'rem',
- 'round',
- ]);
|