@mediaclip/library 12.1.1 → 12.2.0-cd.16809
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,14 @@ export interface ResourcesLoader {
|
|
|
4
4
|
name: string;
|
|
5
5
|
resources: string | string[];
|
|
6
6
|
}): void;
|
|
7
|
+
loadFont(font: StyledFontDefinition): void;
|
|
7
8
|
getPhoto(id: string): PhotoResource;
|
|
8
9
|
getClipart(id: string): ClipartResource;
|
|
9
10
|
getBackground(id: string): ImageBackgroundResource;
|
|
10
11
|
}
|
|
12
|
+
export interface StyledFontDefinition {
|
|
13
|
+
fontFamily: string;
|
|
14
|
+
bold?: boolean;
|
|
15
|
+
italic?: boolean;
|
|
16
|
+
underline?: boolean;
|
|
17
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CollageSpecifications } from "../Format";
|
|
2
|
+
import { StyledFontDefinition } from "../ResourcesLoader";
|
|
2
3
|
import { StyleEntry } from "../styles";
|
|
3
4
|
import { ThemeCollageBuilder } from "../ThemeCollageBuilder";
|
|
4
5
|
type ResourcesToLoad = string | string[] | {
|
|
@@ -9,6 +10,7 @@ export interface SelectorEntry {
|
|
|
9
10
|
name: (name?: string) => SelectorEntry;
|
|
10
11
|
style: (style: string | StyleEntry) => SelectorEntry;
|
|
11
12
|
load: (value: (ResourcesToLoad | ((collage: CollageSpecifications) => ResourcesToLoad | undefined))) => SelectorEntry;
|
|
13
|
+
loadFont: (value: (StyledFontDefinition | ((collage: CollageSpecifications) => StyledFontDefinition | undefined))) => SelectorEntry;
|
|
12
14
|
autoLayout: (ids: string | string[]) => SelectorEntry;
|
|
13
15
|
empty: () => void;
|
|
14
16
|
create: (fn: (collage: ThemeCollageBuilder) => void) => void;
|