dcp-design-react 1.8.24 → 1.8.26

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,6 +4,7 @@ interface IOptions {
4
4
  width?: number;
5
5
  height?: number;
6
6
  penColor?: string;
7
+ fontSize?: number;
7
8
  backgroundColor?: string;
8
9
  mode?: IDrawMode;
9
10
  openSmooth?: boolean;
@@ -30,7 +31,7 @@ interface PointGroupOptions {
30
31
  interface PointGroup extends PointGroupOptions {
31
32
  points: BasicPoint[];
32
33
  }
33
- export type IDrawMode = 'line' | 'square' | 'round' | 'arrow' | 'mosaic' | 'text' | undefined;
34
+ export type IDrawMode = 'square' | 'round' | 'arrow' | 'line' | 'mosaic' | 'text' | undefined;
34
35
  declare class Signature {
35
36
  canvas: HTMLCanvasElement;
36
37
  ctx: CanvasRenderingContext2D;
@@ -51,6 +52,7 @@ declare class Signature {
51
52
  minWidth: number;
52
53
  maxWidth: number;
53
54
  fontSize: number;
55
+ lineHeight: number;
54
56
  degreeOfBlur: number;
55
57
  textInputPos: Pick<Point, 'x' | 'y'>;
56
58
  isMobile: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcp-design-react",
3
- "version": "1.8.24",
3
+ "version": "1.8.26",
4
4
  "description": "A Component Library for React",
5
5
  "keywords": [
6
6
  "React",