From cdb33b05d523fc98116da65a19b30ec230c003ef Mon Sep 17 00:00:00 2001 From: Paul Ferrett Date: Tue, 21 Feb 2023 20:53:05 +1100 Subject: [PATCH] Fix for default value for `_isEmpty`. --- src/signature_pad.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signature_pad.ts b/src/signature_pad.ts index f30dc23d..c7a01af0 100644 --- a/src/signature_pad.ts +++ b/src/signature_pad.ts @@ -63,7 +63,7 @@ export default class SignaturePad extends SignatureEventTarget { /* tslint:disable: variable-name */ private _ctx: CanvasRenderingContext2D; private _drawningStroke = false; - private _isEmpty = false; + private _isEmpty = true; private _lastPoints: Point[] = []; // Stores up to 4 most recent points; used to generate a new curve private _data: PointGroup[] = []; // Stores all points in groups (one group per line or dot) private _lastVelocity = 0;