mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
type fixes
This commit is contained in:
parent
e1853e6e8b
commit
6de50d8ffd
@ -18,7 +18,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Changed
|
||||
|
||||
* getKerning TextPath API is deprecated. Use "kerningFunc" instead.
|
||||
* `getKerning` TextPath API is deprecated. Use `kerningFunc` instead.
|
||||
|
||||
## [2.5.1][2018-11-08]
|
||||
|
||||
|
10
konva.d.ts
vendored
10
konva.d.ts
vendored
@ -11,7 +11,7 @@ declare namespace Konva {
|
||||
currentTarget: Konva.Node;
|
||||
cancelBubble: boolean;
|
||||
}
|
||||
|
||||
|
||||
type HandlerFunc<E = Event> = (e: KonvaEventObject<E>) => void;
|
||||
|
||||
enum KonvaNodeEvent {
|
||||
@ -85,7 +85,7 @@ declare namespace Konva {
|
||||
| 'saturation'
|
||||
| 'color'
|
||||
| 'luminosity';
|
||||
|
||||
|
||||
export interface RGB {
|
||||
r: number;
|
||||
g: number;
|
||||
@ -324,9 +324,10 @@ declare namespace Konva {
|
||||
getClassName(): string;
|
||||
getClientRect(attrs?: {
|
||||
skipTransform?: boolean;
|
||||
relativeTo?: object;
|
||||
skipShadow?: boolean;
|
||||
skipStroke?: boolean;
|
||||
relativeTo?: Konva.Node;
|
||||
}): SizeConfig;
|
||||
getContent(): HTMLDivElement;
|
||||
getDepth(): number;
|
||||
getHeight(): number;
|
||||
getHitCanvas(): Canvas;
|
||||
@ -666,6 +667,7 @@ declare namespace Konva {
|
||||
setContainer(con: HTMLElement): void;
|
||||
setHeight(height: number): void;
|
||||
setWidth(width: number): void;
|
||||
getContent(): HTMLDivElement;
|
||||
}
|
||||
|
||||
interface LayerConfig extends ContainerConfig {
|
||||
|
Loading…
Reference in New Issue
Block a user