diff --git a/src/jcanvas-crescents.ts b/src/jcanvas-crescents.ts index 3c0e78a..b9f01fd 100644 --- a/src/jcanvas-crescents.ts +++ b/src/jcanvas-crescents.ts @@ -39,7 +39,7 @@ function getIntersection( return [xi, yi]; } -$.jCanvas.extend<{ eclipse: number }>({ +$.jCanvas.extend({ name: "drawCrescent", type: "crescent", props: { diff --git a/src/jcanvas-donuts.ts b/src/jcanvas-donuts.ts index 3f929a2..423191d 100644 --- a/src/jcanvas-donuts.ts +++ b/src/jcanvas-donuts.ts @@ -8,7 +8,7 @@ import $ from "jquery"; const PI = Math.PI; -$.jCanvas.extend<{ holeSize: number }>({ +$.jCanvas.extend({ name: "drawDonut", type: "donut", props: { diff --git a/src/jcanvas-hearts.ts b/src/jcanvas-hearts.ts index d265fac..09ba6bc 100644 --- a/src/jcanvas-hearts.ts +++ b/src/jcanvas-hearts.ts @@ -8,7 +8,7 @@ import $ from "jquery"; const PI = Math.PI; -$.jCanvas.extend<{ size: number }>({ +$.jCanvas.extend({ name: "drawHeart", type: "heart", props: { diff --git a/src/jcanvas.d.ts b/src/jcanvas.d.ts index ed9b7f1..be45a14 100644 --- a/src/jcanvas.d.ts +++ b/src/jcanvas.d.ts @@ -16,9 +16,9 @@ declare module "jcanvas/dist/esm/jcanvas-donuts.min.js"; declare module "jcanvas/dist/esm/jcanvas-hearts.min.js"; declare module "jcanvas/dist/esm/jcanvas-handles.min.js"; -interface JCanvasPluginParams { +interface JCanvasPluginParams { name: string; - props?: Record; + props?: TProps; type?: string; fn: ( this: HTMLCanvasElement,