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
2.6.0
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
Halil İbrahim Karaalp
acdec06c4f
Fixes #490
2018-11-09 19:40:36 +03:00
Anton Lavrenov
d48868621c
update cdn link
2.5.1
2018-11-08 09:15:53 -05:00
Anton Lavrenov
2d0cfddc10
build for 2.5.1
2018-11-08 09:15:53 -05:00
Anton Lavrenov
8327371bd6
update CHANGELOG with new version
2018-11-08 09:15:47 -05:00
Anton Lavrenov
b085ece741
Use custom functions for trimRight and trimLeft (for better browsers support)
2018-11-08 09:12:51 -05:00
Anton Lavrenov
16caf0ae9d
Merge pull request #480 from IgorBabkin/443-get-children-generics
...
Methods which return Konva.Collection have problems with generic typi…
2018-10-31 08:52:20 -05:00
Anton Lavrenov
b41d72db94
update cdn link
2.5.0
2018-10-24 08:02:07 -05:00
Anton Lavrenov
725c967b93
build for 2.5.0
2018-10-24 08:02:06 -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
Igor Babkin
3a3d094f8a
Methods which return Konva.Collection have problems with generic typing #443
2018-10-19 19:11:01 +03: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
298a563b8a
New anchorCornerRadius for Konva.Transformer
2018-10-18 12:00:01 -05:00
Anton Lavrenov
a1876a367e
Merge branch 'master' of github.com:konvajs/konva
2018-10-15 16:45:06 -05:00