From b12fd40f25c9c3e194badbe3500395bbe6287d7e Mon Sep 17 00:00:00 2001 From: Anton Lavrenov Date: Tue, 25 Oct 2016 09:03:25 -0600 Subject: [PATCH] update docs --- CHANGELOG.md | 1 + src/Node.js | 2 +- test/test.html | 80 ++++++++++---------------------------------------- 3 files changed, 17 insertions(+), 66 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d317077..bb28981f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## Added - new properties for `Konva.Text`: `letterSpacing` +- new event `contentContextmenu` for `Konva.Stage` ### Changed - changing a size of `Konva.Stage` will update it in async way (via `batchDraw`). diff --git a/src/Node.js b/src/Node.js index fee6f9d4..19ac1a67 100644 --- a/src/Node.js +++ b/src/Node.js @@ -384,7 +384,7 @@ * bind events to the node. KonvaJS supports mouseover, mousemove, * mouseout, mouseenter, mouseleave, mousedown, mouseup, wheel, click, dblclick, touchstart, touchmove, * touchend, tap, dbltap, dragstart, dragmove, and dragend events. The Konva Stage supports - * contentMouseover, contentMousemove, contentMouseout, contentMousedown, contentMouseup, contentWheel + * contentMouseover, contentMousemove, contentMouseout, contentMousedown, contentMouseup, contentWheel, contentContextmenu * contentClick, contentDblclick, contentTouchstart, contentTouchmove, contentTouchend, contentTap, * and contentDblTap. Pass in a string of events delimmited by a space to bind multiple events at once * such as 'mousedown mouseup mousemove'. Include a namespace to bind an diff --git a/test/test.html b/test/test.html index 78cc6f7f..8a9e6e6c 100644 --- a/test/test.html +++ b/test/test.html @@ -8,28 +8,10 @@ overflow: hidden; background-color: #F0F0F0; } - - #buttons { - position: absolute; - top: 5px; - left: 10px; - } - - #buttons > input { - padding: 10px; - display: block; - margin-top: 5px; - }
-
- -
-