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
b9942e5b62
Merge branch 'master' of github.com:konvajs/konva
2019-01-15 14:55:50 -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
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
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
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
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
52f2b8178b
docs updatesx
2019-01-06 03:01:20 -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
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
2404368ec8
New ignoreStroke for Konva.Transformer, perf fixes
2018-12-14 13:28:39 -05: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
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
5136e29d6a
Fix transformer behaviour on shapes with shadow. fix #481
2018-10-22 12:16:30 -05: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
4cfedeb80a
Performance fixes for caching
2018-10-15 16:40:33 -05:00
Anton Lavrenov
ffbb871a02
Fixed a wrong cache when a shape inside group has listening = false
2018-10-12 12:07:04 -05:00
Anton Lavrenov
ac12c32ca0
rect calculation fixes for Path, sprite start fixes. close #465
2018-10-01 14:44:24 +03:00
Anton Lavrenov
15b9d66b20
Fix click stage event on dragend, Fix some Transformer cursor behavior. fix #463
2018-09-27 10:59:27 +03:00
Anton Lavrenov
c0911572e7
getClientRect calculation fix for groups
2018-09-24 14:40:07 +03:00
Anton Lavrenov
04222bfe93
fix function name
2018-09-24 09:50:41 +03:00
Anton Lavrenov
77b51bb587
Added some text trim logic to wrap in better
2018-09-24 09:32:54 +03:00
Anton Lavrenov
27f00b1aad
bugs fixes
2018-09-22 14:08:22 +03:00
Anton Lavrenov
4ac38ddc1f
new centeredScaling for Konva.Transformer
2018-09-19 15:00:27 +03:00
Anton Lavrenov
f7ed3f7d52
Add user-select: none to the stage container to fix some "selected contend around" issues
2018-09-19 14:09:29 +03:00
Anton Lavrenov
5fcf600a4d
pass native events into transform events
2018-09-11 16:39:48 +03:00
Anton Lavrenov
4f70edc8c1
Centered resize with ALT key for Konva.Transformer
2018-09-11 16:15:42 +03:00
Anton Lavrenov
b0c2112ec8
Tween support for gradient properties. fix #454
2018-09-10 18:02:33 +03:00
Anton Lavrenov
cce200d191
fix types
2018-09-08 22:39:23 +03:00
Anton Lavrenov
98efbca18f
vertical align for the text. close #440
2018-08-30 15:18:09 +03:00
Anton Lavrenov
0a6bd95414
add docs, change tests
2018-08-30 13:49:43 +03:00
Anton Lavrenov
973344a3c6
Merge branch 'master' of https://github.com/andrewDyakin/konva into andrewDyakin-master
2018-08-30 13:42:43 +03:00
Dyakin
76e5ff0daa
fix rest length calculation
2018-08-21 18:18:18 +03:00
Anton Lavrenov
a486fbffbd
disable validations in minified version
2018-08-21 16:05:45 +07: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
Dyakin
c16e3d1d0b
get point at path
2018-08-19 23:19:13 +03:00
Anton Lavrenov
22eee6530f
some toDataURL fixes and refactoring
2018-08-16 14:52:42 +07:00
Anton Lavrenov
363f9943c5
change some defaults and change messages
2018-08-13 12:13:29 +07:00
Anton Lavrenov
8420e44c1b
fix stop transform bug
2018-08-10 13:19:56 +07:00