CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
minify.d.ts43 linesDownload Raw Back to icon-set
1import { IconifyJSON } from "@iconify/types";2/**3 * Minify icon set4 *5 * Function finds common values for few numeric properties, such as 'width' and 'height' (see defaultIconDimensions keys for list of properties),6 * removes entries from icons and sets default entry in root of icon set object.7 *8 * For example, this:9 * {10 *  icons: {11 *      foo: {12 *          body: '<g />',13 *          width: 2414 *      },15 *      bar: {16 *          body: '<g />',17 *          width: 2418 *      },19 *      baz: {20 *          body: '<g />',21 *          width: 1622 *      }23 *  }24 * }25 * is changed to this:26 * {27 *  icons: {28 *      foo: {29 *          body: '<g />'30 *      },31 *      bar: {32 *          body: '<g />'33 *      },34 *      baz: {35 *          body: '<g />',36 *          width: 1637 *      }38 *  },39 *  width: 2440 * }41 */42declare function minifyIconSet(data: IconifyJSON): void;43export { minifyIconSet };
basant307/AI_Governance_Project · CoolFace