Commit Graph

1782 Commits

Author SHA1 Message Date
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
Nathan Bruer
ac09295ac0 Fix Transformer with parent negative scale 2018-07-02 11:04:54 -07:00
Anton Lavrenov
136df898c1 add shape as second argument for sceneFunc and hitFunc 2018-06-15 15:17:14 +07:00
Anton Lavrenov
7400977f50 typescript and docs fixes 2018-06-15 14:50:36 +07:00
Anton Lavrenov
74d7a65b16 Correct cache reset for Konva.Transformer 2018-06-15 13:12:02 +07:00
Anton Lavrenov
be5362dcfa some bugs fixes 2018-06-05 21:28:34 +07:00
Anton Lavrenov
9b2d439751 prettier, fix some tests, new test runner 2018-05-24 10:59:08 +09:00
Anton Lavrenov
c08de940e4 fix Konva.Transformer for shapes with offset. close #386 2018-05-17 13:08:29 +09:00
Anton Lavrenov
74d3a12921 automatically change transformer on shape changes. close #391 2018-05-17 07:22:45 +09:00
Anton Lavrenov
902a151699 update CHANGELOG with new version 2018-05-16 12:32:57 +09:00
Anton Lavrenov
417b9a1adb update CHANGELOG with new version 2018-05-16 11:42:32 +09:00
Anton Lavrenov
566dd7e2f0 fix some event behaviour 2018-05-07 11:57:10 +09:00
Anton Lavrenov
76c20a27c3 fix arrow with tension. close 197 2018-05-04 15:56:08 +09:00
Anton Lavrenov
2ac7e692f6 Better wrap algorithm for Konva.Text 2018-04-30 10:40:49 +08:00
Anton Lavrenov
c7b9e9a385 some removes 2018-04-24 14:10:28 +08:00
Anton Lavrenov
7d5e0024be transformer and text fixes. close #381 2018-04-24 12:08:02 +08:00
Anton Lavrenov
272dafe398 fix stage.toDataURL defaults 2018-04-19 14:33:45 +07:00
Anton Lavrenov
f1e7bf0e8e made some caching fixes 2018-04-18 14:25:39 +07:00
Anton Lavrenov
e415e266ab slightly fix getClientRect calculations 2018-04-18 11:27:51 +07:00
Ben Jackman
f51c916336 use single quotes 2018-04-16 23:41:41 -05:00
Ben Jackman
38ca94e7fd Add crossOrigin Anonymous in Konva.Image.fromURL to prevent tainted canvas
See: https://github.com/konvajs/konva/issues/382
2018-04-16 23:33:00 -05:00
Anton Lavrenov
7601be03fc remove logs 2018-04-17 10:27:58 +07:00
Anton Lavrenov
e53d75b11f capture events for transformer 2018-04-17 10:24:06 +07:00
Anton Lavrenov
824261ee6f better fix and test 2018-04-11 11:24:09 +07:00