mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 15:23:44 +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 {
|
interface ContainerConfig extends NodeConfig {
|
||||||
clearBeforeDraw?: boolean;
|
clearBeforeDraw?: boolean;
|
||||||
clipFunc?: Function;
|
clipFunc?: (ctx: CanvasRenderingContext2D) => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Container extends Node {
|
class Container extends Node {
|
||||||
@ -285,8 +285,8 @@ declare module Konva {
|
|||||||
clipX(clipX: number) : Container;
|
clipX(clipX: number) : Container;
|
||||||
clipY(): number;
|
clipY(): number;
|
||||||
clipY(clipY: number) : Container;
|
clipY(clipY: number) : Container;
|
||||||
clipFunct(): number;
|
clipFunc(): (ctx: CanvasRenderingContext2D) => void;
|
||||||
clipFunct(clipFunc: Function) : Container;
|
clipFunc(ctx: CanvasRenderingContext2D) : void;
|
||||||
destroyChildren() : void;
|
destroyChildren() : void;
|
||||||
find(selector? : string): Collection;
|
find(selector? : string): Collection;
|
||||||
getAllIntersections(pos: Vector2d): Node[];
|
getAllIntersections(pos: Vector2d): Node[];
|
||||||
|
Loading…
Reference in New Issue
Block a user