mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Add type HtmlConvasImage to allow to set a canvas inside an Iimage
This commit is contained in:
parent
9f58c3bf48
commit
c4fa170d74
2
konva.d.ts
vendored
2
konva.d.ts
vendored
@ -646,7 +646,7 @@ declare module Konva {
|
||||
}
|
||||
|
||||
interface ImageConfig extends ShapeConfig {
|
||||
image: HTMLImageElement;
|
||||
image: HTMLImageElement | HTMLCanvasElement;
|
||||
crop?: SizeConfig;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user