UNPKG

@payfit/unity-illustrations

Version:

14 lines (13 loc) • 821 B
import { UnityIllustrationName } from '../../generated/illustrationAssets.js'; export type CanonicalIllustrationGroup = { name: UnityIllustrationName; variants: readonly UnityIllustrationName[]; }; /** * Groups the generated static illustration names by their shared visual concept. * `WithBackground` is a presentation variant of the base illustration, not a * separate illustration to discover in the catalog. */ export declare function getCanonicalIllustrationGroups(names: readonly UnityIllustrationName[]): readonly CanonicalIllustrationGroup[]; export declare function matchesIllustrationGroup(group: CanonicalIllustrationGroup, query: string): boolean; export declare function getIllustrationVariantLabel(group: CanonicalIllustrationGroup, variant: UnityIllustrationName): "With background" | "Plain";