File

src/interfaces/elements.ts

Index

Properties

Properties

family
family: string
Type : string
src
src: string
Type : string
style
style: "normal" | "italic" | "oblique"
Type : "normal" | "italic" | "oblique"
unicodeRange
unicodeRange: string
Type : string
weight
weight: "normal" | "bold" | "lighter" | "bolder" | "inherit" | "initial" | "unset" | number
Type : "normal" | "bold" | "lighter" | "bolder" | "inherit" | "initial" | "unset" | number
import { ElementType, ElementOptions, Element } from './element';

export interface Elements {
  create(type: ElementType, options: ElementOptions): Element;
}

export interface ElementsOptions {
  fonts?: FontElement[];
  locale?:
    | 'auto'
    | 'da'
    | 'de'
    | 'en'
    | 'es'
    | 'fi'
    | 'fr'
    | 'it'
    | 'ja'
    | 'no'
    | 'nl'
    | 'sv'
    | 'zh';
}

export type FontElement = FontCSSElement | FontConfigElement;

export interface FontCSSElement {
  cssSrc: string;
}

export interface FontConfigElement {
  family?: string;
  src?: string;
  style?: 'normal' | 'italic' | 'oblique';
  unicodeRange?: string;
  weight?:
    | 'normal'
    | 'bold'
    | 'lighter'
    | 'bolder'
    | 'inherit'
    | 'initial'
    | 'unset'
    | number;
}

results matching ""

    No results matching ""