fix(core): update
This commit is contained in:
parent
fa11bae71f
commit
c84973ce37
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@designestate/fontloader',
|
name: '@designestate/fontloader',
|
||||||
version: '1.0.2',
|
version: '1.0.3',
|
||||||
description: 'a fontloader for managing font loading from A to Z'
|
description: 'a fontloader for managing font loading from A to Z'
|
||||||
}
|
}
|
||||||
|
25
ts/index.ts
25
ts/index.ts
@ -1,3 +1,26 @@
|
|||||||
import * as plugins from './fontloader.plugins.js';
|
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() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user