Commit Graph

2434 Commits

Author SHA1 Message Date
Anton Lavrenov
cab03b5a88 skip test 2019-01-19 10:15:11 -05:00
Anton Lavrenov
a5d6e93c31 Merge branch 'master' of github.com:konvajs/konva 2019-01-19 10:13:43 -05:00
Anton Lavrenov
53fdd52814
Merge pull request #545 from VladimirTechMan/master
Minor improvement to the implementation of Text._sceneFunc
2019-01-19 10:13:34 -05:00
Anton Lavrenov
5c4df70738 update docs 2019-01-19 10:13:21 -05:00
Anton Lavrenov
e0f2e99320 update dev notes 2019-01-19 10:13:03 -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
9baf66113e
Merge pull request #543 from VladimirTechMan/master
Very minor optimization to _getCache()
2019-01-17 12:33:05 -05:00
VladimirTechMan
30d304556f Very minor optimization to _getCache()
This is just a minor change to avoid accessing the same property
in object this._cache twice inside _getCache() when its is already
set (defined). No big performance improvements probably, but given
that the cached values can be checked many times for each node
in the tree, I think it makes sense to do that small improvement.
2019-01-16 19:42:41 +03:00
Anton Lavrenov
366abc0a79 change test again 2019-01-15 14:58:39 -05:00
Anton Lavrenov
b9942e5b62 Merge branch 'master' of github.com:konvajs/konva 2019-01-15 14:55:50 -05:00
Anton Lavrenov
ce5ab7e4cf change test 2019-01-15 14:55:41 -05:00
Anton Lavrenov
3f3e548e4f
Merge pull request #541 from VladimirTechMan/master
When rendering multi-line texts, check text decoration flags once
2019-01-15 14:54:14 -05:00
VladimirTechMan
1a62681e58 When rendering multi-line texts, check text decoration flags once
A small improvement to avoid re-testing the presence of underline
and line-through attributes in the textDecoration property on each
line of the text being rendered.
2019-01-15 21:39:40 +03:00
Anton Lavrenov
d90b0f15c2 Merge branch 'master' of github.com:konvajs/konva 2019-01-14 13:29:36 -05:00
Anton Lavrenov
5ebef8ef6e some code and comments fixes 2019-01-14 13:29:24 -05:00
Anton Lavrenov
160757781c
Merge pull request #537 from VladimirTechMan/master
Simplify the Boolean condition used in _useBufferCanvas()
2019-01-14 13:27:19 -05:00
VladimirTechMan
d5523bb11b Simplify the Boolean condition used in _useBufferCanvas()
The original Boolean condition duplicates most of the predicates
used in both parts of the "or" expression. It is enough to test
them just once, which also makes it easier to figure out what
the criterion for using the buffer canvas is. (An extra effect
is that the code becomes smaller and potentially quicker for the
JIT compiler to handle, but I don't expect much reduction here.)
2019-01-12 21:49:21 +03:00
Anton Lavrenov
fd2ff292e1
Merge pull request #536 from VladimirTechMan/master
Spelling correction to variable name
2019-01-11 20:19:16 -05:00
VladimirTechMan
70ff42d017 Spelling correction to variable name 2019-01-11 21:46:44 +03:00
Anton Lavrenov
60e425c596 Merge branch 'master' of github.com:konvajs/konva 2019-01-11 08:52:28 -05:00
Anton Lavrenov
830eb53650 bugs fixes, docs updates. fix #535 2019-01-11 08:51:46 -05:00
Anton Lavrenov
4571ea16b7
Merge pull request #531 from VladimirTechMan/master
Do not recalculate additionalWidth on every line of multiline text
2019-01-08 12:16:01 -05:00
VladimirTechMan
6c53a2b27a Do not recalculate additionalWidth on every line of multiline text
This is just a minor improvement (optimization) to _setTextData():
Flag shouldAddEllipsis is not changed inside the loop, thus no need
to recalculate the value of additionalWidth for every line of the
original text.
2019-01-08 20:03:25 +03:00
Anton Lavrenov
adcd6b9c96
Merge pull request #529 from VladimirTechMan/master
When setting new text on Konva.Text, treat undefined width or height as 'auto'
2019-01-08 09:34:07 -05:00
VladimirTechMan
4be6ed7ac8 Setting text on Konva.Text, treat undefined width or height as 'auto'
Similar to how it's handled in getWidth() and getHeight() of Konva.Text,
let _setTextData() treat undefined values of the 'width' and 'height'
attributes as if they are set to 'auto', not as if they are fixed.
2019-01-06 22:06:37 +03:00
Anton Lavrenov
a3767bdf3d Merge branch 'master' of github.com:konvajs/konva 2019-01-06 03:01:47 -05:00
Anton Lavrenov
52f2b8178b docs updatesx 2019-01-06 03:01:20 -05:00
Anton Lavrenov
15fe72c642
Merge pull request #527 from Ivanca/patch-1
TypeScript definitions: "setAttrs" must accept same arg than constructor
2019-01-03 09:46:45 -05:00
Ivan
24001ec7aa
"setAttrs" must accept same arg than constructor
Any class that extends from Node must take the same argument on setAttrs as its constructor.

TODO: Check for classes missing on this PR, which only fixes classes that extend from Shape
2019-01-02 21:12:27 -05:00
Anton Lavrenov
4d58cd6479 initial migrate to typescript 2019-01-01 15:59:27 -05:00
Anton Lavrenov
1cbabcb06d add back ie fix 2018-12-18 12:29:48 -05:00
Anton Lavrenov
d00a5b4a6d remove all old fixes 2018-12-18 12:24:01 -05:00
Anton Lavrenov
993ebd543a Merge branch 'master' of github.com:konvajs/konva 2018-12-18 12:20:32 -05:00
Anton Lavrenov
5e178ef200
Merge pull request #517 from rfrei/rfrei-fix_mouse_mobile
fix mouse events on mobile devices
2018-12-18 12:20:22 -05:00
Anton Lavrenov
6de50d8ffd type fixes 2018-12-18 12:19:51 -05:00
Technik Radio F.R.E.I
5bbb42d8fb
fix mouse events on mobile devices
- remove check for mobile flag in mouse event handlers
- remove workaround fake mousemove event in chrome browser https://code.google.com/p/chromium/issues/detail?id=161464 because it prevents mouse events working on Android mobile devices
2018-12-16 00:03:03 +01:00
Anton Lavrenov
e1853e6e8b update cdn link 2018-12-14 13:30:10 -05:00
Anton Lavrenov
9092d67258 build for 2.6.0 2018-12-14 13:30:10 -05:00
Anton Lavrenov
11449fd8c3 update CHANGELOG with new version 2018-12-14 13:30:05 -05:00
Anton Lavrenov
4a189ab5bb Merge branch 'master' of github.com:konvajs/konva 2018-12-14 13:29:54 -05:00
Anton Lavrenov
2404368ec8 New ignoreStroke for Konva.Transformer, perf fixes 2018-12-14 13:28:39 -05:00
Anton Lavrenov
ed3321e6a8
Merge pull request #514 from cyrilmesvayn/patch-1
Update konva.d.ts for getRGB
2018-12-12 13:06:40 -05:00
cyrilmesvayn
1d39f5293a
Update konva.d.ts for getRGB
getRGB returns an object with RGB values, not a string. I've set up a type RGB. 

Feel free to edit to your heart's content.
2018-12-12 12:56:27 -05:00
Anton Lavrenov
3ce9457b0a
Merge pull request #503 from iceafish/patch-5
Update konva.d.ts
2018-11-28 08:21:30 -05:00
Yingjie Liu
d33a79940b
Update konva.d.ts
fix Layer FastLayer generic type definition
2018-11-28 17:50:49 +08: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
3cfb576812
Merge pull request #493 from halilibrahim/master
Fixes #491
2018-11-14 10:16:51 -05:00
Halil İbrahim Karaalp
6b8937012c Fixes #491 2018-11-09 19:46:37 +03:00
Anton Lavrenov
2cd8bad654
Merge pull request #492 from halilibrahim/master
Fixes #490
2018-11-09 11:44:09 -05:00