@mediaclip/library 12.1.0-cd.15969 → 12.1.1

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.
@@ -1,7 +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;
6
7
  printFinishing?: string;
8
+ effect?: ElementGradientEffect;
7
9
  }
@@ -1,5 +1,8 @@
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
+ printFinishing?: string;
7
+ effect?: ElementGradientEffect;
5
8
  }
@@ -13,5 +13,6 @@ export interface AddStaticTextElementArgument extends AddVisualElementArgumentBa
13
13
  color?: string;
14
14
  spotColor?: string;
15
15
  background?: ElementBackground;
16
+ maxFontSize?: number;
16
17
  border?: ElementStraightBorder | ElementFrameBorder;
17
18
  }
@@ -9,6 +9,7 @@ export interface AddTextElementArgument extends AddVisualElementArgumentBase {
9
9
  behavior?: string;
10
10
  maxCharacters?: number;
11
11
  maxHeight?: number;
12
+ maxFontSize?: number;
12
13
  textGenerationSettings?: string;
13
14
  hAlign?: HAlign;
14
15
  vAlign?: VAlign;
@@ -1,9 +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;
8
10
  printFinishing?: string;
11
+ setEffect(value: ElementEffect): void;
9
12
  }
13
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface ElementGradientEffect {
2
+ type: 'gradient';
3
+ /** An array of hexadecimal color, e.g. #000000 for black */
4
+ colors: string[];
5
+ /** The gradient angle in degrees */
6
+ angle: number;
7
+ }
@@ -1,7 +1,12 @@
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
+ printFinishing?: string;
10
+ setEffect(value: ElementEffect): void;
7
11
  }
12
+ 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
  }
@@ -15,6 +15,7 @@ export interface TextElement extends VisualElement {
15
15
  behavior?: string;
16
16
  maxCharacters: number;
17
17
  maxHeight: number;
18
+ maxFontSize: number;
18
19
  textGenerationSettings?: string;
19
20
  hAlign: HAlign;
20
21
  vAlign: VAlign;
@@ -1,8 +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
- import { TextEmbossingEffect, TextGradientEffect, TextStrokeEffect } from "../../shared/elements/TextEffect";
6
7
  interface StyleDefinition {
7
8
  background?: string | SetBackgroundElementArgument;
8
9
  texts?: TextStyleArgument | TextStyleArgument[];
@@ -30,6 +31,7 @@ interface TextStyleArgument {
30
31
  underline?: boolean;
31
32
  fontFamily: string;
32
33
  fontSize?: number;
34
+ maxFontSize?: number;
33
35
  color?: string;
34
36
  spotColor?: string;
35
37
  background?: ElementBackground;
@@ -43,6 +45,7 @@ interface ClipartStyleArgument {
43
45
  id: string;
44
46
  colorize?: string;
45
47
  colorizeSpotColor?: string;
48
+ effect?: ElementGradientEffect;
46
49
  }
47
50
  interface PhotoStyleArgument {
48
51
  tag?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaclip/library",
3
- "version": "12.1.0-cd.15969",
3
+ "version": "12.1.1",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "keywords": [],