edit-pdf 0.0.10 → 0.0.11
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/README.md +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/pdf-editor.js +31056 -2802
- package/dist/pdf-editor.umd.cjs +51 -3
- package/dist/sindh-logo.png +0 -0
- package/dist/vite.svg +1 -0
- package/package.json +5 -29
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,12 @@ declare interface PdfEditorProps {
|
|
|
38
38
|
onSave?: (file: File) => void;
|
|
39
39
|
shouldExport?: boolean;
|
|
40
40
|
onExportComplete?: () => void;
|
|
41
|
+
/** URL (or data URL) of the user's saved signature image */
|
|
42
|
+
signatureUrl?: string | null;
|
|
43
|
+
/** Called when the user saves a newly drawn signature as PNG */
|
|
44
|
+
onSaveSignature?: (png: Blob) => void;
|
|
45
|
+
/** Called when the user deletes their saved signature */
|
|
46
|
+
onClearSignature?: () => void;
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
export declare type ShapeType = "rectangle" | "ellipse" | "circle" | "line" | "arrow";
|