Commit Graph

130 Commits

Author SHA1 Message Date
Anton Lavrenov
1d8388eead performance optimizations 2020-06-10 11:57:48 -05:00
Anton Lavrenov
ee99044baa remove inherit from listening property, deprecate FastLayer, font fixes. 2020-05-14 11:13:47 -05:00
Nathan Muir
bf1b4a91e9 Make Node#isVisible() consistent with drawing behaviour
Remove the "inherit" value from Node#visible(), and treat `true` similar to "inherit".

Fixes konvajs/konva#906
2020-05-13 11:55:36 +12:00
Anton Lavrenov
d5481b1b72 prettier 2020-05-08 09:59:35 -05:00
Anton Lavrenov
2423ec261b fix transformer on parent transform change. close #834 2020-04-08 17:27:18 -05:00
Anton Lavrenov
6fbe48e583 allow cloning id 2020-02-17 19:51:18 -05:00
Anton Lavrenov
86f847a702 Fix wrong internal caching of absolute attributes. fix #843 2020-02-10 08:22:07 -05:00
Anton Lavrenov
201a292a89 clean up 2019-10-07 14:22:52 -05:00
Anton Lavrenov
f9c60c99e1 fix hasName method for empty name cases 2019-03-21 07:43:58 -05:00
Anton Lavrenov
0e87ded7ba update CHANGELOG with new version 2019-03-18 14:18:03 -05:00
Anton Lavrenov
febdc9e3d4 fix some docs and tests 2019-02-20 09:13:39 -05:00
Anton Lavrenov
0ae1f66b60 Private method stage._setPointerPosition() is deprecated
New method `stage.setPointersPositions(event)`
2019-02-19 20:17:49 -05:00
VladimirTechMan
26d40ae1f9 Proposal: Using ECMAScript 6 Map for Node._cache instead of plain Object 2019-02-17 23:59:08 +03:00
Anton Lavrenov
dcff79eb63 more warnings and methods 2019-02-13 23:41:32 -05:00
Anton Lavrenov
128b5b403e fix array serialization. fix #576 2019-02-11 08:46:34 -05:00
Anton Lavrenov
31785f6323 Show a warning for incorrect value for component setters. Fix some TODOs 2019-01-27 15:43:50 -05:00
Anton Lavrenov
a0b2f027ba drag&drop refactor, update docs 2019-01-25 00:20:15 -05:00
Anton Lavrenov
11d805795a warning on dublicate ids 2019-01-24 22:52:16 -05:00
Anton Lavrenov
7aa3c3238d several fixes 2019-01-21 17:42:02 -05:00
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