2 Commits

Author SHA1 Message Date
70aafeef39 1.0.3 2023-01-07 08:30:55 +01:00
c84973ce37 fix(core): update 2023-01-07 08:30:54 +01:00
3 changed files with 26 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@designestate/fontloader",
"version": "1.0.2",
"version": "1.0.3",
"private": false,
"description": "a fontloader for managing font loading from A to Z",
"main": "dist_ts/index.js",

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@designestate/fontloader',
version: '1.0.2',
version: '1.0.3',
description: 'a fontloader for managing font loading from A to Z'
}

View File

@ -1,3 +1,26 @@
import * as plugins from './fontloader.plugins.js';
export let demoExport = 'Hi there! :) This is an exported string';
export type TFonts = 'Inter' | 'MaterialIcons' | 'Courier Prime';
let fontsloaderSingleton: FontLoader;
export class FontLoader {
public static ensureFonts(fontsArrayArg: TFonts) {
if (!fontsloaderSingleton) {
fontsloaderSingleton = new FontLoader();
}
}
/**
* loads the Inter font
*/
public loadInter() {
}
/**
* load material icons
*/
public loadMaterialIcon() {
}
}