mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +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;
|
strokeEnabled?: boolean;
|
||||||
lineJoin?: string;
|
lineJoin?: string;
|
||||||
lineCap?: string;
|
lineCap?: string;
|
||||||
sceneFunc?: (con: Context) => void;
|
sceneFunc?: (con: Context, shape: Shape) => void;
|
||||||
hitFunc?: (con: Context) => void;
|
hitFunc?: (con: Context, shape: Shape) => void;
|
||||||
shadowColor?: string;
|
shadowColor?: string;
|
||||||
shadowBlur?: number;
|
shadowBlur?: number;
|
||||||
shadowOffset?: Vector2d;
|
shadowOffset?: Vector2d;
|
||||||
@ -594,7 +594,7 @@ declare namespace Konva {
|
|||||||
hasShadow(): boolean;
|
hasShadow(): boolean;
|
||||||
hasStroke(): boolean;
|
hasStroke(): boolean;
|
||||||
hitFunc(): Function;
|
hitFunc(): Function;
|
||||||
hitFunc(func: Function): this;
|
hitFunc(func: (con: Context, shape: Shape) => {}): this;
|
||||||
intersects(point: Vector2d): boolean;
|
intersects(point: Vector2d): boolean;
|
||||||
lineCap(): string;
|
lineCap(): string;
|
||||||
lineCap(lineCap: string): this;
|
lineCap(lineCap: string): this;
|
||||||
@ -603,7 +603,7 @@ declare namespace Konva {
|
|||||||
perfectDrawEnabled(): boolean;
|
perfectDrawEnabled(): boolean;
|
||||||
perfectDrawEnabled(perfectDrawEnabled: boolean): this;
|
perfectDrawEnabled(perfectDrawEnabled: boolean): this;
|
||||||
sceneFunc(): Function;
|
sceneFunc(): Function;
|
||||||
sceneFunc(func: (con: Context) => {}): this;
|
sceneFunc(func: (con: Context, shape: Shape) => {}): this;
|
||||||
shadowColor(): string;
|
shadowColor(): string;
|
||||||
shadowColor(shadowColor: string): this;
|
shadowColor(shadowColor: string): this;
|
||||||
shadowEnabled(): boolean;
|
shadowEnabled(): boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user