mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 02:27:53 +08:00
typescript fix. close #424
This commit is contained in:
parent
738cc8b79c
commit
11b9961395
8
konva.d.ts
vendored
8
konva.d.ts
vendored
@ -506,8 +506,8 @@ declare namespace Konva {
|
||||
strokeEnabled?: boolean;
|
||||
lineJoin?: string;
|
||||
lineCap?: string;
|
||||
sceneFunc?: (con: Context) => void;
|
||||
hitFunc?: (con: Context) => void;
|
||||
sceneFunc?: (con: Context, shape: Shape) => void;
|
||||
hitFunc?: (con: Context, shape: Shape) => void;
|
||||
shadowColor?: string;
|
||||
shadowBlur?: number;
|
||||
shadowOffset?: Vector2d;
|
||||
@ -594,7 +594,7 @@ declare namespace Konva {
|
||||
hasShadow(): boolean;
|
||||
hasStroke(): boolean;
|
||||
hitFunc(): Function;
|
||||
hitFunc(func: Function): this;
|
||||
hitFunc(func: (con: Context, shape: Shape) => {}): this;
|
||||
intersects(point: Vector2d): boolean;
|
||||
lineCap(): string;
|
||||
lineCap(lineCap: string): this;
|
||||
@ -603,7 +603,7 @@ declare namespace Konva {
|
||||
perfectDrawEnabled(): boolean;
|
||||
perfectDrawEnabled(perfectDrawEnabled: boolean): this;
|
||||
sceneFunc(): Function;
|
||||
sceneFunc(func: (con: Context) => {}): this;
|
||||
sceneFunc(func: (con: Context, shape: Shape) => {}): this;
|
||||
shadowColor(): string;
|
||||
shadowColor(shadowColor: string): this;
|
||||
shadowEnabled(): boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user