Commit Graph

1555 Commits

Author SHA1 Message Date
Anton Lavrenov
f645b22c4a * `dragstart event behaviour is a bit changed. It will fire BEFORE actual position of a node is changed. fix #476 2018-10-18 12:28:03 -05:00
Anton Lavrenov
298a563b8a New anchorCornerRadius for Konva.Transformer 2018-10-18 12:00:01 -05:00
Anton Lavrenov
4cfedeb80a Performance fixes for caching 2018-10-15 16:40:33 -05:00
Anton Lavrenov
ffbb871a02 Fixed a wrong cache when a shape inside group has listening = false 2018-10-12 12:07:04 -05:00
Anton Lavrenov
ac12c32ca0 rect calculation fixes for Path, sprite start fixes. close #465 2018-10-01 14:44:24 +03:00
Anton Lavrenov
15b9d66b20 Fix click stage event on dragend, Fix some Transformer cursor behavior. fix #463 2018-09-27 10:59:27 +03:00
Anton Lavrenov
c0911572e7 getClientRect calculation fix for groups 2018-09-24 14:40:07 +03:00
Anton Lavrenov
04222bfe93 fix function name 2018-09-24 09:50:41 +03:00
Anton Lavrenov
77b51bb587 Added some text trim logic to wrap in better 2018-09-24 09:32:54 +03:00
Anton Lavrenov
27f00b1aad bugs fixes 2018-09-22 14:08:22 +03:00
Anton Lavrenov
4ac38ddc1f new centeredScaling for Konva.Transformer 2018-09-19 15:00:27 +03:00
Anton Lavrenov
f7ed3f7d52 Add user-select: none to the stage container to fix some "selected contend around" issues 2018-09-19 14:09:29 +03:00
Anton Lavrenov
5fcf600a4d pass native events into transform events 2018-09-11 16:39:48 +03:00
Anton Lavrenov
4f70edc8c1 Centered resize with ALT key for Konva.Transformer 2018-09-11 16:15:42 +03:00
Anton Lavrenov
b0c2112ec8 Tween support for gradient properties. fix #454 2018-09-10 18:02:33 +03:00
Anton Lavrenov
cce200d191 fix types 2018-09-08 22:39:23 +03:00
Anton Lavrenov
98efbca18f vertical align for the text. close #440 2018-08-30 15:18:09 +03:00
Anton Lavrenov
0a6bd95414 add docs, change tests 2018-08-30 13:49:43 +03:00
Anton Lavrenov
973344a3c6 Merge branch 'master' of https://github.com/andrewDyakin/konva into andrewDyakin-master 2018-08-30 13:42:43 +03:00
Dyakin
76e5ff0daa fix rest length calculation 2018-08-21 18:18:18 +03:00
Anton Lavrenov
a486fbffbd disable validations in minified version 2018-08-21 16:05:45 +07:00
Anton Lavrenov
738cc8b79c Automatic validations for many attributes. close #436 2018-08-21 15:56:04 +07:00
Anton Lavrenov
973e7932e4 typescript fixes, id warning template 2018-08-21 14:13:53 +07:00
Dyakin
c16e3d1d0b get point at path 2018-08-19 23:19:13 +03:00
Anton Lavrenov
22eee6530f some toDataURL fixes and refactoring 2018-08-16 14:52:42 +07:00
Anton Lavrenov
363f9943c5 change some defaults and change messages 2018-08-13 12:13:29 +07:00
Anton Lavrenov
8420e44c1b fix stop transform bug 2018-08-10 13:19:56 +07:00
Anton Lavrenov
093d501cf6 new transformer style functions 2018-08-10 10:22:08 +07:00
Anton Lavrenov
b518ae0dac Merge branch 'master' of github.com:konvajs/konva 2018-08-09 12:31:48 +07:00
Anton Lavrenov
52cdd66dfe fix for draggable stage 2018-08-09 12:24:50 +07:00
Anton Lavrenov
d20d4ed98e
Merge pull request #425 from adam-t-b/master
Anchor Box Size for Transformer
2018-08-09 12:24:40 +07:00
Adam Berrio
a114a546fd Renaming per request
anchorBoxSize to anchorSize
2018-08-03 22:28:09 -07:00
Marcin Majkowski
ede310a19c Add missing frameRate SpriteConfig typing and Sprite documentation entry 2018-08-03 23:36:49 +02:00
Adam Berrio
0b0dd806fc Fixing wording 2018-08-02 22:25:29 -07:00
Adam Berrio
357b3b52f3 Adding Anchor Box Size to Transformer
This switches the constant BASE_BOX_WIDTH and BASE_BOX_HEIGHT to be a config option.
[config.anchorBoxSize]
2018-08-02 22:17:20 -07:00
Anton Lavrenov
41576cfa81 Merge branch 'master' of github.com:konvajs/konva 2018-08-01 18:35:42 +07:00
Anton Lavrenov
98d2d6ffe0 better toDataURL for shapes 2018-08-01 09:26:13 +07:00
VladimirTechMan
ee6fc3c0b4 Removing unused value from return statement in _eachAncestorReverse()
A minor cleanup. When method _eachAncestorReverse() does not have
the top node argument, it returns "nothing" (undefined). Thus, the
true value returned when it has the top argument – and the current
Konva code never checks or uses that returned value – seems to be
just a side effect of code copy-paste or alike, done in the past.

Unless the function was planned to return a boolean value for a
a good reason (in which case we'd need to add a return value to
its end), let's remove the unused value from return.
2018-07-24 11:17:45 -04:00
Anton Lavrenov
40416a0cee prettier, build 2018-07-24 11:07:13 +07:00
VladimirTechMan
fc2343078a Support offsetX and offsetY when transformsEnabled is set to 'position'
Supporting both x, y and offsetX, offsetY under the 'position' option
of node property transformsEnabled makes it more useful for real apps.

As there is no benefit in making auxiliary variable transformsEnabled
a part of the function closure, it is moved inside the local function
body itself.
2018-07-23 19:47:05 -04:00
VladimirTechMan
556a58f9dd Improved _getAbsoluteTransform() when transformEnabled != 'all'
Only call getTransform() inside _getAbsoluteTransform() when the
transformEnabled property is set to 'all'. That also eliminates
the need in extra variable (trans) to reference the returned value.
2018-07-19 20:47:28 -04:00
Anton Lavrenov
39e022e786 toDataURL fixes 2018-07-18 14:56:46 +07:00
Anton Lavrenov
aaa3461b1f Transformer fixes 2018-07-12 11:04:20 +07:00
Anton Lavrenov
e6c5325ccb toObject fixes 2018-07-05 14:49:02 +07:00
Anton Lavrenov
0fe91fd1a1 Merge branch 'master' of https://github.com/allada/konva into allada-master 2018-07-04 11:20:29 +07:00
Nathan Bruer
96837bd349 Transformer changes to work properly with scaling 2018-07-03 10:03:19 -07:00
Anton Lavrenov
289a16d298 remove warning 2018-07-03 12:15:38 +07:00
Anton Lavrenov
a106b3e34c Merge branch 'master' of https://github.com/allada/konva into allada-master 2018-07-03 12:09:19 +07:00
Anton Lavrenov
e518e64935 ome drag&drop fixes 2018-07-03 11:03:06 +07:00
Nathan Bruer
89bb89ec65 Transformer now handles scale properly 2018-07-02 15:30:21 -07:00