mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge pull request #298 from ivan-redooc/master
Add type HtmlConvasImage to allow to set a canvas inside the object Konva.Image
This commit is contained in:
commit
558b5f8e3b
2
konva.d.ts
vendored
2
konva.d.ts
vendored
@ -646,7 +646,7 @@ declare module Konva {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface ImageConfig extends ShapeConfig {
|
interface ImageConfig extends ShapeConfig {
|
||||||
image: HTMLImageElement;
|
image: HTMLImageElement | HTMLCanvasElement;
|
||||||
crop?: SizeConfig;
|
crop?: SizeConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user