MCPcopy Create free account
hub / github.com/fontsource/fontsource / axesValue

Function axesValue

packages/cli/src/sass/metadata.ts:4–18  ·  view source on GitHub ↗
(metadata: Metadata)

Source from the content-addressed store, hash-verified

2import { findClosest } from '../utils';
3
4const axesValue = (metadata: Metadata) => {
5 let out = '(\n';
6 for (const variable of Object.keys(metadata.variable)) {
7 const axis = (metadata.variable as Axes)[variable];
8 out += ` ${variable}: (
9 default: ${axis.default},
10 min: ${axis.min},
11 max: ${axis.max},
12 step: ${axis.step},
13 ),
14`;
15 }
16 out += ')';
17 return out;
18};
19
20const unicodeValue = (unicode: UnicodeRange) => {
21 if (Object.keys(unicode).length > 0) {

Callers 1

sassMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected