From 417b9a1adbd48df8c041ac47440efbe7f6612031 Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Wed, 16 May 2018 11:42:32 +0900 Subject: [PATCH] update CHANGELOG with new version --- CHANGELOG.md | 2 ++ konva.d.ts | 6 +++++- src/shapes/Transformer.js | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fb57149..ae0f1a4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [new version][unreleased] +## [2.1.0][2018-05-16] + ## Fixed * Cursor fixes for `Konva.Transformer` diff --git a/konva.d.ts b/konva.d.ts index 51ede88d..95c041a6 100644 --- a/konva.d.ts +++ b/konva.d.ts @@ -5,6 +5,10 @@ declare namespace Konva { var isDragReady: () => boolean; var DD: any; + type HandlerFunc = ( + e: { target: Konva.Shape; evt: Event; currentTarget: Konva.Node } + ) => void; + type globalCompositeOperationType = | '' | 'source-over' @@ -254,7 +258,7 @@ declare namespace Konva { offsetX(offsetX: number): this; offsetY(): number; offsetY(offsetY: number): this; - on(evtStr: string, handler: Function): this; + on(evtStr: string, handler: HandlerFunc): this; opacity(): number; opacity(opacity: number): this; pixelSize(): number; diff --git a/src/shapes/Transformer.js b/src/shapes/Transformer.js index dc38f2f9..356cfc56 100644 --- a/src/shapes/Transformer.js +++ b/src/shapes/Transformer.js @@ -277,7 +277,6 @@ height: 10, offsetX: 5, offsetY: 5, - draggable: true, dragDistance: 0 }); var self = this;