@oiij/js-pdf 0.0.8 → 0.0.9

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +4 -4
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -19,20 +19,20 @@ declare function readPdfFile(buffer: ArrayBuffer): Promise<{
19
19
  //#endregion
20
20
  //#region src/index.d.ts
21
21
  type Color = string | [number, number, number, number];
22
- interface TextStyle {
22
+ type TextStyle = {
23
23
  fontSize?: number;
24
24
  fontName?: string;
25
25
  fontStyle?: HTMLFontFace['style'];
26
26
  fontWeight?: HTMLFontFace['weight'];
27
27
  textColor?: Color;
28
- }
29
- interface DrawStyle {
28
+ };
29
+ type DrawStyle = {
30
30
  drawColor?: Color;
31
31
  fillColor?: Color;
32
32
  charSpace?: number;
33
33
  lineWidth?: number;
34
34
  style?: 'S' | 'F' | 'FD' | 'DF' | null;
35
- }
35
+ };
36
36
  type PDFStyle = TextStyle & DrawStyle & {};
37
37
  type PDFDataType = 'text' | 'image' | 'circle' | 'line' | 'lines';
38
38
  type OTextOptions = TextOptions & TextStyle;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiij/js-pdf",
3
3
  "type": "module",
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "description": "A simple PDF library for JavaScript",
6
6
  "author": "oiij",
7
7
  "license": "MIT",