diff --git a/src/Shape.ts b/src/Shape.ts index 81fac66c..7143436e 100644 --- a/src/Shape.ts +++ b/src/Shape.ts @@ -13,6 +13,10 @@ import { _registerNode } from './Global'; import { GetSet, Vector2d } from './types'; +export type ShapeConfigHandler = { + bivarianceHack(ctx: Context, shape: TTarget): void +}['bivarianceHack'] + export interface ShapeConfig extends NodeConfig { fill?: string; fillPatternImage?: HTMLImageElement; @@ -748,11 +752,11 @@ export class Shape extends Node< fillPatternX: GetSet; fillPatternY: GetSet; fillPriority: GetSet; - hitFunc: GetSet<(ctx: Context, shape: this) => void, this>; + hitFunc: GetSet, this>; lineCap: GetSet; lineJoin: GetSet; perfectDrawEnabled: GetSet; - sceneFunc: GetSet<(ctx: Context, shape: this) => void, this>; + sceneFunc: GetSet, this>; shadowColor: GetSet; shadowEnabled: GetSet; shadowForStrokeEnabled: GetSet;