Commit Graph

111 Commits

Author SHA1 Message Date
Anton Lavrenov
5ebef8ef6e some code and comments fixes 2019-01-14 13:29:24 -05:00
Dyakin
94bc556b8d Tests cleanup 2018-09-04 13:37:40 +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
Anton Lavrenov
22eee6530f some toDataURL fixes and refactoring 2018-08-16 14:52:42 +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
Anton Lavrenov
e6c5325ccb toObject fixes 2018-07-05 14:49:02 +07:00
Anton Lavrenov
9b2d439751 prettier, fix some tests, new test runner 2018-05-24 10:59:08 +09:00
Anton Lavrenov
f1e7bf0e8e made some caching fixes 2018-04-18 14:25:39 +07:00
Anton Lavrenov
8894d75a44 implement off with callbacks 2018-01-12 11:05:12 +07:00
Anton Lavrenov
460feab0ae update deps, change defualt dragDistance to 3px 2017-08-25 13:25:55 +02:00
Anton Lavrenov
7b6d97aaa5 build and apply prettier 2017-07-28 18:40:07 +02:00
Anton Lavrenov
8e7ce7ff4f test fixes 2017-03-24 09:07:34 -05:00
Anton Lavrenov
59cc7b99f2 setup prettier and make all code better 2017-02-24 09:15:33 -05:00
Anton Lavrenov
e523c86ebd fix memory leak. close #198 2017-01-10 08:27:32 -05:00
ada99
95edb44782 Fix #157 (#158)
* Stringify custom attributes-objects

* Stringify custom attributes-objects
2016-07-09 20:54:28 +07:00
Anton Lavrenov
aef5e79981 update CHANGELOG with new version 2016-07-05 09:59:41 +07:00
Anton Lavrenov
9470bc5fe2 cleanup 2016-05-06 14:10:50 +07:00
Anton Lavrenov
3c1e2804de better HDPI support
update packages
2016-02-28 16:57:15 +08:00
Anton Lavrenov
e3596d6c63 repair cancelBubble event property behaviour. fix #123. 2016-01-26 23:21:25 +08:00
Anton Lavrenov
ff82ad1901 optimize change event. close #120 2016-01-07 15:57:36 +08:00
Anton Lavrenov
2e76cfba30 currentTarget fix 2016-01-04 08:31:53 +08:00
Anton Lavrenov
28e8758d29 new node.findAncestors(selector) and node.findAncestor(selector) functions. close #116 2015-12-25 21:35:19 +07:00
Anton Lavrenov
eda967c07e optional parent argument for getAbsolutePosition 2015-12-23 09:18:36 +07:00
lavrton
d1d30c6c1a event delegation support 2015-11-22 10:44:33 +07:00
lavrton
ff6a2bf0cc fix toObject for extended attrs. close #86 2015-08-28 11:36:38 +07:00
lavrton
026423402d update Konva.Node.create flow 2015-08-28 10:29:52 +07:00
Anton Lavrenov
d455d0f994 mark some methods as deprecated 2015-05-07 08:48:15 +07:00
Anton Lavrenov
3dff461592 set default pixelRatio for method 2015-04-27 11:20:55 +07:00
Anton Lavrenov
429ef19a93 update toDataURL test 2015-04-26 07:38:41 +07:00
Anton Lavrenov
923c466572 test for toDataURL + HDPI 2015-04-26 07:26:54 +07:00
lavrton
44f7d17847 repair tests 2015-04-13 07:17:32 +07:00
lavrton
c3511210f2 cache + pixelRatio 2015-02-14 22:12:54 +07:00
lavrton
e39d7861c3 Add new method getClientRect(). rethink caching. 2015-02-12 14:10:36 +07:00
lavrton
0ea9f0e257 fix remove name bug 2015-02-08 09:52:19 +07:00
lavrton
264a4bab1c fix undefined name bug 2015-02-08 07:39:43 +07:00
lavrton
5df69badbf new naming methods 2015-02-08 06:24:11 +07:00
lavrton
3b94673d73 Merge branch 'master' of https://github.com/jovination/konva into jovination-master
Conflicts:
	src/Stage.js
	test/unit/Node-test.js
	test/unit/Shape-test.js
	test/unit/plugins/Path-test.js
2015-01-27 15:15:05 +07:00
Jovination
607ef1837b Renaming 2015-01-27 00:07:51 -07:00
lavrton
f9a08a6acc rendering shadows and strokes test improve 2015-01-27 13:21:02 +07:00
Лаврёнов Антон
16511a9aef remove all events with node.off() 2014-05-15 23:45:04 +08:00
Лаврёнов Антон
917ca5bc56 better caching if node not in layer 2014-05-11 20:22:30 +08:00
Лаврёнов Антон
f648852975 improve shouldDrawHit behaviour 2014-05-06 16:21:25 +08:00
Лаврёнов Антон
d579c97f83 unit test for group hit graph and listening 2014-05-06 15:51:24 +08:00
Лаврёнов Антон
a0b98bded0 improve image drawing performance 2014-05-05 11:09:31 +08:00
Лаврёнов Антон
4cf968749c unit test for drawing hit before adding shape to layer 2014-05-04 12:11:50 +08:00