mirror of
https://github.com/konvajs/konva.git
synced 2026-01-22 21:02:26 +08:00
types fixes
This commit is contained in:
@@ -533,7 +533,12 @@ export abstract class Container<ChildType extends Node> extends Node<
|
|||||||
clipY: GetSet<number, this>;
|
clipY: GetSet<number, this>;
|
||||||
clipWidth: GetSet<number, this>;
|
clipWidth: GetSet<number, this>;
|
||||||
clipHeight: 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
|
// add getters setters
|
||||||
|
|||||||
Reference in New Issue
Block a user