mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge pull request #208 from devdoomari/add-clipfunc-ts-def
fix clipFunc definitions
This commit is contained in:
commit
236744723a
6
konva.d.ts
vendored
6
konva.d.ts
vendored
@ -268,7 +268,7 @@ declare module Konva {
|
||||
|
||||
interface ContainerConfig extends NodeConfig {
|
||||
clearBeforeDraw?: boolean;
|
||||
clipFunc?: Function;
|
||||
clipFunc?: (ctx: CanvasRenderingContext2D) => void;
|
||||
}
|
||||
|
||||
class Container extends Node {
|
||||
@ -285,8 +285,8 @@ declare module Konva {
|
||||
clipX(clipX: number) : Container;
|
||||
clipY(): number;
|
||||
clipY(clipY: number) : Container;
|
||||
clipFunct(): number;
|
||||
clipFunct(clipFunc: Function) : Container;
|
||||
clipFunc(): (ctx: CanvasRenderingContext2D) => void;
|
||||
clipFunc(ctx: CanvasRenderingContext2D) : void;
|
||||
destroyChildren() : void;
|
||||
find(selector? : string): Collection;
|
||||
getAllIntersections(pos: Vector2d): Node[];
|
||||
|
Loading…
Reference in New Issue
Block a user