Commit Graph

1782 Commits

Author SHA1 Message Date
Anton Lavrenov
8962164096 make Konva modular 2019-02-27 08:06:04 -05:00
Anton Lavrenov
899d0942ea strokeWidth = 0 bug fix 2019-02-25 07:55:36 -05:00
Anton Lavrenov
5cbfe07e6e refactor validators 2019-02-24 12:06:04 -05:00
Anton Lavrenov
4a6eba726c remove some method from public API 2019-02-23 21:36:05 -05:00
Anton Lavrenov
98afa3fac6 refactoring 2019-02-23 20:54:20 -05:00
Anton Lavrenov
472bb1cf63 fix recache bug 2019-02-23 09:40:32 -05:00
Anton Lavrenov
605725fe43 cache fix 2019-02-22 22:13:37 -05:00
Anton Lavrenov
9c06b2ff96 add warning for clip on stage. close #456 2019-02-22 20:48:16 -05:00
Anton Lavrenov
aaf0185363 type fixes, fix fast layer bug 2019-02-22 12:46:46 -05:00
Anton Lavrenov
b251fe3f57 rewrote sepia filter from scratch 2019-02-20 14:04:58 -05:00
Anton Lavrenov
645ac49882 more fixes for gradient 2019-02-20 11:33:00 -05:00
Anton Lavrenov
48bedf8fa9 Fixed gradient drawing for Konva.Text 2019-02-20 11:01:38 -05:00
Anton Lavrenov
febdc9e3d4 fix some docs and tests 2019-02-20 09:13:39 -05:00
Anton Lavrenov
c4f21b67a3 Fixed container change for a stage. fix #510 2019-02-19 20:43:06 -05:00
Anton Lavrenov
0ae1f66b60 Private method stage._setPointerPosition() is deprecated
New method `stage.setPointersPositions(event)`
2019-02-19 20:17:49 -05:00
Anton Lavrenov
ab4a14abce deprecate getTextHeight 2019-02-19 08:41:32 -05:00
Anton Lavrenov
1b065a55a0 ixed automatic updates for Konva.Transformer 2019-02-19 08:36:16 -05:00
Anton Lavrenov
74210cbc79 fix caching issues. close #581 2019-02-18 12:38:17 -05:00
Anton Lavrenov
7b22a7ae50 Merge branch 'master' of github.com:konvajs/konva 2019-02-18 12:18:16 -05:00
Anton Lavrenov
40cf5a5909 fix some docs, partial cache fixes 2019-02-18 12:12:03 -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
1dea3696a2 configure what mouse buttons can be used for drag&drop 2019-02-14 10:33:58 -05:00
Anton Lavrenov
dcff79eb63 more warnings and methods 2019-02-13 23:41:32 -05:00
Anton Lavrenov
99e66c380f cache patterns and gradients 2019-02-13 22:04:54 -05:00
Anton Lavrenov
12fc838709 Merge branch 'master' of github.com:konvajs/konva 2019-02-11 08:47:24 -05:00
Anton Lavrenov
128b5b403e fix array serialization. fix #576 2019-02-11 08:46:34 -05:00
VladimirTechMan
7cd4905ce5 Minor corrections to the existing code
Removing one redundant variable and one small typo in a comment.
2019-02-09 22:22:19 +03:00
VladimirTechMan
5753af88bf Setting DD.node to null instead of deleting
In the footsteps of my previous commit. This one replaces the deletion
of DD.node with setting it to null.
2019-02-09 19:49:22 +03:00
Anton Lavrenov
33d64e194c build fixes, text underline fixes 2019-02-06 12:46:21 -05:00
Anton Lavrenov
08b3fb159e update deps 2019-02-06 12:03:53 -05:00
Anton Lavrenov
0f4681e9be remove some content events usage 2019-02-05 21:32:29 -05:00
Anton Lavrenov
9aed313ef2 better test 2019-02-05 21:21:57 -05:00
Anton Lavrenov
052d090ea3 Merge branch 'master' of github.com:konvajs/konva 2019-02-05 16:43:57 -05:00
Anton Lavrenov
b02ac65e68 fix docs, Better implementation of mouseover event for stage 2019-02-05 16:43:43 -05:00
VladimirTechMan
15e7477e81 When removing a child, set key "parent" to null, don't delete it
Structural changes to objects are relatively more expensive and
harder to optimize for modern JavaScript compilers, compared to
just changing object's key values. The parent property of nodes
is already set to null now, as part constructing the object.
Setting it back to null on removal / destroy of objects is more
consistent and a tiny little bit more efficient.
2019-02-03 22:47:50 +03:00
VladimirTechMan
09bfaab9f2 Fix for the performance regression in the updated batchDraw()
The code was checking the "waiting" flags, but they were not set.
This patch corrects that part and makes a few other tweaks to the
updated logic on top of requestAnimationFrame().
2019-02-03 14:21:41 +03: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
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
3a89a7a0c1 Merge branch 'master' of github.com:konvajs/konva 2019-01-21 19:30:54 -05:00
Anton Lavrenov
0057841032 Merge branch 'master' of github.com:konvajs/konva 2019-01-21 19:29:57 -05:00
Anton Lavrenov
7aa3c3238d several fixes 2019-01-21 17:42:02 -05:00
VladimirTechMan
d823beefb0 Simpler code logic for Node._isVisible()
The original logic can be implemented in a more compact and clear
way while producing the same results.
2019-01-21 23:50:07 +03:00
Anton Lavrenov
199bbbbff1 some fixes 2019-01-20 18:06:46 -05:00
VladimirTechMan
0be8e779bc Fix the calls to getGlobalKonva() inside the current code base
Following the recent migration to TypeScript, getGlobalKonva()
returns undefined (as glob.Konva was not set) when using konva.js
or konva.min.js inside a web application running in a browser.
This change works around the situation by explicitly setting the
Konva property on the glob object.
2019-01-20 12:12:12 +03:00
Anton Lavrenov
d960cf5c67 Merge pull request #546 from VladimirTechMan/master
Fix handling of the width and hight changes in the Stage class
2019-01-19 21:31:51 -05:00
Anton Lavrenov
521070cb05 fix watch mode 2019-01-19 21:29:52 -05:00