From f7ca8659167d10e77ab854a2550b929acbf5469d Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Fri, 7 Jun 2024 16:33:26 -0700 Subject: [PATCH] Fix *Canvas() method types requiring all jCanvas properties --- src/jcanvas.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/jcanvas.d.ts b/src/jcanvas.d.ts index 1229b94..eff1658 100644 --- a/src/jcanvas.d.ts +++ b/src/jcanvas.d.ts @@ -261,12 +261,12 @@ interface JQuery { stopLayer(layerId: JCanvasLayerId, clearQueue?: boolean): void; stopLayerGroup(groupId: jCanvasLayerGroupId, clearQueue?: boolean): void; draw(args: Partial): JQuery; - clearCanvas(args?: JCanvasObject): JQuery; - saveCanvas(args?: JCanvasObject): JQuery; - restoreCanvas(args?: JCanvasObject): JQuery; - rotateCanvas(args?: JCanvasObject): JQuery; - scaleCanvas(args?: JCanvasObject): JQuery; - translateCanvas(args?: JCanvasObject): JQuery; + clearCanvas(args?: Partial): JQuery; + saveCanvas(args?: Partial): JQuery; + restoreCanvas(args?: Partial): JQuery; + rotateCanvas(args?: Partial): JQuery; + scaleCanvas(args?: Partial): JQuery; + translateCanvas(args?: Partial): JQuery; drawRect(args: Partial): JQuery; drawArc(args: Partial): JQuery; drawEllipse(args: Partial): JQuery;