@signosoft/signpad-js 0.4.8 → 0.4.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.
- package/dist/index.d.ts +7 -3
- package/dist/signosoft-signpad.js +942 -1349
- package/dist/signosoft-signpad.umd.cjs +17 -17
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ declare class CanvasManager {
|
|
|
66
66
|
private ctx;
|
|
67
67
|
/** @private The active configuration for line styles */
|
|
68
68
|
private currentDrawingOptions;
|
|
69
|
+
/** @private Last drawn point for mouse-fallback stroke continuity */
|
|
70
|
+
private lastDrawPoint;
|
|
69
71
|
/**
|
|
70
72
|
* Creates an instance of CanvasManager.
|
|
71
73
|
* @param canvas - The HTMLCanvasElement to draw on.
|
|
@@ -83,9 +85,8 @@ declare class CanvasManager {
|
|
|
83
85
|
*/
|
|
84
86
|
updateDrawingOptions(options: IDrawingOptions): void;
|
|
85
87
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* @param penData - Ignored.
|
|
88
|
+
* Draws a stroke segment for mouse/touch fallback input.
|
|
89
|
+
* Physical tablet strokes are rendered by SignatureLayer/SignatureCapture.
|
|
89
90
|
*/
|
|
90
91
|
drawSegment(penData: IPenData_2): void;
|
|
91
92
|
/**
|
|
@@ -182,6 +183,8 @@ declare class ConnectionManager {
|
|
|
182
183
|
private penDataToDispatch;
|
|
183
184
|
/** @private Minimum delay between pen events (approx 60fps) */
|
|
184
185
|
private throttleDelayMs;
|
|
186
|
+
/** @private Pen data accumulated during a mouse-fallback signing session */
|
|
187
|
+
private mouseFallbackPenLog;
|
|
185
188
|
private static readonly POINTER_FALLBACK_DEVICE_NAME;
|
|
186
189
|
/**
|
|
187
190
|
* @param component - The host SignosoftSignpad instance.
|
|
@@ -227,6 +230,7 @@ declare class ConnectionManager {
|
|
|
227
230
|
* @returns A promise resolving to true if the session started successfully.
|
|
228
231
|
*/
|
|
229
232
|
startSigning(canvas: HTMLCanvasElement, drawingOptions?: IDrawingOptions): Promise<boolean>;
|
|
233
|
+
logMouseFallbackPenData(data: IPenData_2): void;
|
|
230
234
|
/**
|
|
231
235
|
* Stops the current signing session if active.
|
|
232
236
|
* @returns Signature data if available.
|