@mediaclip/library 12.1.0-cd.15674 → 12.1.0-cd.16305
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.
- package/dist/shared/arguments/AddClipartElementArgument.d.ts +3 -0
- package/dist/shared/arguments/AddStaticImageElementArgument.d.ts +2 -0
- package/dist/shared/arguments/AddStaticTextElementArgument.d.ts +1 -0
- package/dist/shared/arguments/AddTextElementArgument.d.ts +4 -0
- package/dist/shared/elements/ClipartElement.d.ts +5 -0
- package/dist/shared/elements/ElementEffect.d.ts +7 -0
- package/dist/shared/elements/StaticImageElement.d.ts +4 -0
- package/dist/shared/elements/StaticTextElement.d.ts +1 -0
- package/dist/shared/elements/TextEffect.d.ts +21 -0
- package/dist/shared/elements/TextElement.d.ts +5 -0
- package/dist/themes/styles/StyleEntry.d.ts +5 -1
- package/package.json +1 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { ElementGradientEffect } from '../elements/ElementEffect';
|
|
1
2
|
import { AddVisualElementArgumentBase } from "./AddVisualElementArgumentBase";
|
|
2
3
|
export interface AddClipartElementArgument extends AddVisualElementArgumentBase {
|
|
3
4
|
tag?: string;
|
|
4
5
|
colorize?: string;
|
|
5
6
|
colorizeSpotColor?: string;
|
|
7
|
+
printFinishing?: string;
|
|
8
|
+
effect?: ElementGradientEffect;
|
|
6
9
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { ElementGradientEffect } from '../elements/ElementEffect';
|
|
1
2
|
import { AddVisualElementArgumentBase } from "./AddVisualElementArgumentBase";
|
|
2
3
|
export interface AddStaticImageElementArgument extends AddVisualElementArgumentBase {
|
|
3
4
|
colorize?: string;
|
|
4
5
|
colorizeSpotColor?: string;
|
|
6
|
+
effect?: ElementGradientEffect;
|
|
5
7
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementBackground, ElementFrameBorder, ElementStraightBorder, HAlign, TextElementMode, VAlign } from "../elements";
|
|
2
|
+
import { TextEmbossingEffect, TextGradientEffect, TextStrokeEffect } from "../elements/TextEffect";
|
|
2
3
|
import { AddVisualElementArgumentBase } from "./AddVisualElementArgumentBase";
|
|
3
4
|
export interface AddTextElementArgument extends AddVisualElementArgumentBase {
|
|
4
5
|
text?: string;
|
|
@@ -8,6 +9,7 @@ export interface AddTextElementArgument extends AddVisualElementArgumentBase {
|
|
|
8
9
|
behavior?: string;
|
|
9
10
|
maxCharacters?: number;
|
|
10
11
|
maxHeight?: number;
|
|
12
|
+
maxFontSize?: number;
|
|
11
13
|
textGenerationSettings?: string;
|
|
12
14
|
hAlign?: HAlign;
|
|
13
15
|
vAlign?: VAlign;
|
|
@@ -18,6 +20,8 @@ export interface AddTextElementArgument extends AddVisualElementArgumentBase {
|
|
|
18
20
|
fontSize?: number;
|
|
19
21
|
color?: string;
|
|
20
22
|
spotColor?: string;
|
|
23
|
+
printFinishing?: string;
|
|
21
24
|
background?: ElementBackground;
|
|
22
25
|
border?: ElementStraightBorder | ElementFrameBorder;
|
|
26
|
+
effect?: TextStrokeEffect | TextEmbossingEffect | TextGradientEffect;
|
|
23
27
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ClipartResource } from "../resources";
|
|
2
|
+
import { ElementGradientEffect } from './ElementEffect';
|
|
2
3
|
import { VisualElement } from "./VisualElement";
|
|
4
|
+
type ElementEffect = ElementGradientEffect;
|
|
3
5
|
export interface ClipartElement extends VisualElement {
|
|
4
6
|
tag?: string;
|
|
5
7
|
clipart?: ClipartResource;
|
|
6
8
|
colorize?: string;
|
|
7
9
|
colorizeSpotColor?: string;
|
|
10
|
+
printFinishing?: string;
|
|
11
|
+
setEffect(value: ElementEffect): void;
|
|
8
12
|
}
|
|
13
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { ClipartResource } from "../resources";
|
|
2
|
+
import { ElementGradientEffect } from './ElementEffect';
|
|
2
3
|
import { VisualElement } from "./VisualElement";
|
|
4
|
+
type ElementEffect = ElementGradientEffect;
|
|
3
5
|
export interface StaticImageElement extends VisualElement {
|
|
4
6
|
clipart?: ClipartResource;
|
|
5
7
|
colorize?: string;
|
|
6
8
|
colorizeSpotColor?: string;
|
|
9
|
+
setEffect(value: ElementEffect): void;
|
|
7
10
|
}
|
|
11
|
+
export {};
|
|
@@ -16,6 +16,7 @@ export interface StaticTextElement extends VisualElement {
|
|
|
16
16
|
color: string;
|
|
17
17
|
spotColor?: string;
|
|
18
18
|
background?: ElementBackground;
|
|
19
|
+
maxFontSize: number;
|
|
19
20
|
readonly border?: ElementFrameBorder | ElementStraightBorder;
|
|
20
21
|
setBorder(value: ElementStraightBorder | ElementFrameBorder): void;
|
|
21
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface TextStrokeEffect {
|
|
2
|
+
type: 'stroke';
|
|
3
|
+
/** A hexadecimal color, e.g. #000000 for black */
|
|
4
|
+
color: string;
|
|
5
|
+
/** The size of the effect in 300 DPI points */
|
|
6
|
+
size: number;
|
|
7
|
+
}
|
|
8
|
+
export interface TextEmbossingEffect {
|
|
9
|
+
type: 'embossing';
|
|
10
|
+
/** The size of the effect in 300 DPI points */
|
|
11
|
+
size: number;
|
|
12
|
+
/** Between 0 (transparent) and 100 (opaque) */
|
|
13
|
+
opacity: number;
|
|
14
|
+
}
|
|
15
|
+
export interface TextGradientEffect {
|
|
16
|
+
type: 'gradient';
|
|
17
|
+
/** An array of hexadecimal color, e.g. #000000 for black */
|
|
18
|
+
colors: string[];
|
|
19
|
+
/** The gradient angle in degrees */
|
|
20
|
+
angle: number;
|
|
21
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { ElementBackground } from "./ElementBackground";
|
|
2
2
|
import { ElementFrameBorder, ElementStraightBorder } from "./ElementBorder";
|
|
3
3
|
import { HAlign } from "./HAlign";
|
|
4
|
+
import { TextEmbossingEffect, TextGradientEffect, TextStrokeEffect } from "./TextEffect";
|
|
4
5
|
import { TextElementMode } from "./TextElementMode";
|
|
5
6
|
import { VAlign } from "./VAlign";
|
|
6
7
|
import { VisualElement } from "./VisualElement";
|
|
7
8
|
type TextBorder = ElementStraightBorder | ElementFrameBorder;
|
|
9
|
+
type TextEffect = TextStrokeEffect | TextEmbossingEffect | TextGradientEffect;
|
|
8
10
|
export interface TextElement extends VisualElement {
|
|
9
11
|
text: string;
|
|
10
12
|
tag?: string;
|
|
@@ -13,6 +15,7 @@ export interface TextElement extends VisualElement {
|
|
|
13
15
|
behavior?: string;
|
|
14
16
|
maxCharacters: number;
|
|
15
17
|
maxHeight: number;
|
|
18
|
+
maxFontSize: number;
|
|
16
19
|
textGenerationSettings?: string;
|
|
17
20
|
hAlign: HAlign;
|
|
18
21
|
vAlign: VAlign;
|
|
@@ -24,7 +27,9 @@ export interface TextElement extends VisualElement {
|
|
|
24
27
|
color: string;
|
|
25
28
|
spotColor?: string;
|
|
26
29
|
background?: ElementBackground;
|
|
30
|
+
printFinishing?: string;
|
|
27
31
|
readonly border?: TextBorder;
|
|
28
32
|
setBorder(value: TextBorder): void;
|
|
33
|
+
setEffect(value: TextEffect): void;
|
|
29
34
|
}
|
|
30
35
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { MarginArgument } from "../../shared";
|
|
1
2
|
import { ElementBackground, ElementFrameBorder, ElementMaskBorder, ElementStraightBorder, HAlign, TextElementMode, VAlign } from "../../shared/elements";
|
|
3
|
+
import { ElementGradientEffect } from '../../shared/elements/ElementEffect';
|
|
4
|
+
import { TextEmbossingEffect, TextGradientEffect, TextStrokeEffect } from "../../shared/elements/TextEffect";
|
|
2
5
|
import { CollageSpecifications } from "../Format";
|
|
3
6
|
import { SetBackgroundElementArgument } from "../arguments";
|
|
4
|
-
import { MarginArgument } from "../../shared";
|
|
5
7
|
interface StyleDefinition {
|
|
6
8
|
background?: string | SetBackgroundElementArgument;
|
|
7
9
|
texts?: TextStyleArgument | TextStyleArgument[];
|
|
@@ -33,6 +35,7 @@ interface TextStyleArgument {
|
|
|
33
35
|
spotColor?: string;
|
|
34
36
|
background?: ElementBackground;
|
|
35
37
|
border?: ElementStraightBorder | ElementFrameBorder;
|
|
38
|
+
effect?: TextStrokeEffect | TextEmbossingEffect | TextGradientEffect;
|
|
36
39
|
mode?: TextElementMode;
|
|
37
40
|
computeTextHeight?: boolean;
|
|
38
41
|
}
|
|
@@ -41,6 +44,7 @@ interface ClipartStyleArgument {
|
|
|
41
44
|
id: string;
|
|
42
45
|
colorize?: string;
|
|
43
46
|
colorizeSpotColor?: string;
|
|
47
|
+
effect?: ElementGradientEffect;
|
|
44
48
|
}
|
|
45
49
|
interface PhotoStyleArgument {
|
|
46
50
|
tag?: string;
|