mirror of
https://github.com/konvajs/konva.git
synced 2026-01-23 13:26:07 +08:00
ts fixes
This commit is contained in:
@@ -5,6 +5,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
## Not released:
|
## Not released:
|
||||||
|
|
||||||
|
## 4.0.14 - 2019-10-11
|
||||||
|
|
||||||
|
* TS fixes
|
||||||
* Fix globalCompositeOperation + cached hit detections.
|
* Fix globalCompositeOperation + cached hit detections.
|
||||||
* Fix absolute position calculations for cached parent
|
* Fix absolute position calculations for cached parent
|
||||||
|
|
||||||
|
|||||||
2
konva.js
2
konva.js
@@ -8,7 +8,7 @@
|
|||||||
* Konva JavaScript Framework v4.0.13
|
* Konva JavaScript Framework v4.0.13
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Thu Oct 10 2019
|
* Date: Fri Oct 11 2019
|
||||||
*
|
*
|
||||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||||
|
|||||||
2
konva.min.js
vendored
2
konva.min.js
vendored
@@ -3,7 +3,7 @@
|
|||||||
* Konva JavaScript Framework v4.0.13
|
* Konva JavaScript Framework v4.0.13
|
||||||
* http://konvajs.org/
|
* http://konvajs.org/
|
||||||
* Licensed under the MIT
|
* Licensed under the MIT
|
||||||
* Date: Thu Oct 10 2019
|
* Date: Fri Oct 11 2019
|
||||||
*
|
*
|
||||||
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
* Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)
|
||||||
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
* Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { _registerNode } from '../Global';
|
|||||||
import { GetSet, IRect } from '../types';
|
import { GetSet, IRect } from '../types';
|
||||||
|
|
||||||
export interface ImageConfig extends ShapeConfig {
|
export interface ImageConfig extends ShapeConfig {
|
||||||
image: ImageBitmapSource;
|
image: CanvasImageSource | undefined;
|
||||||
crop?: IRect;
|
crop?: IRect;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +124,7 @@ export class Image extends Shape<ImageConfig> {
|
|||||||
img.src = url;
|
img.src = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
image: GetSet<CanvasImageSource, this>;
|
image: GetSet<CanvasImageSource | undefined, this>;
|
||||||
crop: GetSet<IRect, this>;
|
crop: GetSet<IRect, this>;
|
||||||
cropX: GetSet<number, this>;
|
cropX: GetSet<number, this>;
|
||||||
cropY: GetSet<number, this>;
|
cropY: GetSet<number, this>;
|
||||||
|
|||||||
Reference in New Issue
Block a user