mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
types fixes
This commit is contained in:
parent
dc34c42440
commit
bd21b9cf81
@ -533,7 +533,12 @@ export abstract class Container<ChildType extends Node> extends Node<
|
||||
clipY: GetSet<number, this>;
|
||||
clipWidth: GetSet<number, this>;
|
||||
clipHeight: GetSet<number, this>;
|
||||
clipFunc: GetSet<(ctx: CanvasRenderingContext2D, shape: this) => void, this>;
|
||||
// there was "this" instead of "Container<ChildType>",
|
||||
// but it breaks react-konva types: https://github.com/konvajs/react-konva/issues/390
|
||||
clipFunc: GetSet<
|
||||
(ctx: CanvasRenderingContext2D, shape: Container<ChildType>) => void,
|
||||
this
|
||||
>;
|
||||
}
|
||||
|
||||
// add getters setters
|
||||
|
Loading…
Reference in New Issue
Block a user