Commit Graph

718 Commits

Author SHA1 Message Date
Anton Lavrenov
11d805795a warning on dublicate ids 2019-01-24 22:52:16 -05:00
Anton Lavrenov
d726c5d6f3 add docs, change perf test 2019-01-24 08:45:17 -05:00
Anton Lavrenov
a81f9ec1f9 Show a warning when a stage has too many layers 2019-01-22 08:43:43 -05:00
Anton Lavrenov
41a46c8afe clean up some methods 2019-01-21 21:22:36 -05:00
Anton Lavrenov
d49ee3dff1 fix tests for HDPI 2019-01-21 17:50:42 -05:00
Anton Lavrenov
7aa3c3238d several fixes 2019-01-21 17:42:02 -05:00
Anton Lavrenov
76299cd07a skip test 2019-01-19 10:46:24 -05:00
Anton Lavrenov
44bf0a69ca remove old checks 2019-01-19 10:39:26 -05:00
Anton Lavrenov
d660efe9fa fix log 2019-01-19 10:31:07 -05:00
Anton Lavrenov
3002891f5e more info in tests 2019-01-19 10:26:21 -05:00
Anton Lavrenov
cab03b5a88 skip test 2019-01-19 10:15:11 -05:00
VladimirTechMan
e6276d28db Minor improvement to the implementation of Text._sceneFunc
As the context's translate() is additive, there is no need for
the two consecutive calls of it inside _sceneFunc(): The same
effect can be achieved with with just one call of translate().

A corresponding update was done in the unit test for Text that
had a pair of calls to translate() in the expected call dump.
2019-01-19 14:56:38 +03:00
Anton Lavrenov
366abc0a79 change test again 2019-01-15 14:58:39 -05:00
Anton Lavrenov
ce5ab7e4cf change test 2019-01-15 14:55:41 -05:00
Anton Lavrenov
5ebef8ef6e some code and comments fixes 2019-01-14 13:29:24 -05:00
Anton Lavrenov
830eb53650 bugs fixes, docs updates. fix #535 2019-01-11 08:51:46 -05:00
Anton Lavrenov
52f2b8178b docs updatesx 2019-01-06 03:01:20 -05:00
Anton Lavrenov
4d58cd6479 initial migrate to typescript 2019-01-01 15:59:27 -05:00
Anton Lavrenov
2404368ec8 New ignoreStroke for Konva.Transformer, perf fixes 2018-12-14 13:28:39 -05:00
Anton Lavrenov
d76b09e026 update docs, update version 2018-11-27 09:02:28 -05:00
Anton Lavrenov
352f493d0a getKerning TextPath API is deprecated. Use "kerningFunc" instead. 2018-11-17 08:50:31 -05:00
Anton Lavrenov
7a95e9ad80 update CHANGELOG with new version 2018-10-24 08:02:01 -05:00
Anton Lavrenov
5136e29d6a Fix transformer behaviour on shapes with shadow. fix #481 2018-10-22 12:16:30 -05:00
Anton Lavrenov
2ccc9a7fdd remove logs, update perf test 2018-10-18 15:12:54 -05:00
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
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
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
3cf4707e1a enable tests 2018-09-11 16:23:58 +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
Dyakin
94bc556b8d Tests cleanup 2018-09-04 13:37:40 +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
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
77af92cbf0 build and test fix 2018-08-09 12:35:21 +07:00
VladimirTechMan
3a8f10687c Merge remote-tracking branch 'upstream/master' 2018-08-02 22:30:21 -04:00
Anton Lavrenov
98d2d6ffe0 better toDataURL for shapes 2018-08-01 09:26:13 +07:00
VladimirTechMan
940fdfe787 Only update the z-indices that do change after reordering nodes
Right now, when updating the z-index of a node in a container,
the indices of all its siblings are refreshed. However, if the
node changes its z-index from z1 to z2, we only need to refresh
the z-indexes of the node's parent's children in the closed
range [ min(z1,z2), max(z1,z2) ]. For groups and layers with
many children that will be more optimal in many cases.

In addition to the above change, this patch:
* forces the parameter of Node#setZIndex() to be in the valid
  range.
* adds the (now absent) unit tests for the methods of Node that
  change z-indices of the parent's children.
2018-07-28 18:56:37 -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