src/interfaces/elements.ts
        
| Methods | 
| create | ||||||||||||
| create(type: ElementType, options: ElementOptions) | ||||||||||||
| Defined in src/interfaces/elements.ts:4 | ||||||||||||
| 
                                                Parameters :
                                                 
 
                                            Returns :      Element | 
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;
}