Commit Graph

41 Commits

Author SHA1 Message Date
Anton Lavrenov
6fcfd4de54 Fix ellipsis rendering for Konva.Text 2020-12-18 11:12:19 -05:00
Tyler Kindy
2b5f51f0c9
Add missing text props to config type definition 2020-11-13 00:01:44 -05:00
Anton Lavrenov
4ce6800fd9 better tests 2020-09-17 13:25:46 -05:00
Anton Lavrenov
6cb86685f7 text rendering fixes 2020-09-17 09:39:15 -05:00
Anton Lavrenov
0e1afd3d5c fix ellipsis for Konva.Text 2020-09-16 09:55:40 -05:00
Anton Lavrenov
4b69631782 Better unicode support in Konva.Text and Konva.TextPath. Emoji should work better now 👍. fix #690 2020-09-14 09:46:26 -05:00
Anton Lavrenov
103ad23929 multirow support for ellipses config for Konva.Text. close #970 2020-09-07 11:03:20 -05:00
Anton Lavrenov
4e1b1c7812 rendering fixes for letter spacing. fix #942 2020-07-02 17:27:30 -05:00
Anton Lavrenov
08d1ca7c5f font fixes. close #910 2020-06-25 12:18:31 -05:00
Anton Lavrenov
d96e7d9ede text font fix. close #910 2020-05-14 11:25:27 -05:00
Anton Lavrenov
ee99044baa remove inherit from listening property, deprecate FastLayer, font fixes. 2020-05-14 11:13:47 -05:00
Anton Lavrenov
3d00d1a344 Fix rounding issues for getClientRect() for some shapes. fix #879 2020-03-26 14:41:06 -05:00
Anton Lavrenov
472441fcfe fix text correction. fix #786 2019-11-25 11:25:30 -05:00
Anton Lavrenov
680ea026d8 small refactoring 2019-11-12 14:38:36 -05:00
Anton Lavrenov
61936af059 polyfill tripRight for IE11. fix #783 2019-11-08 11:45:59 -05:00
Anton Lavrenov
e150791f97 huge typescript fixes, remove Object.assign usage 2019-03-10 10:31:13 -05:00
Anton Lavrenov
e88a485458 better modules 2019-03-06 22:19:32 -05:00
Anton Lavrenov
8962164096 make Konva modular 2019-02-27 08:06:04 -05:00
Anton Lavrenov
5cbfe07e6e refactor validators 2019-02-24 12:06:04 -05:00
Anton Lavrenov
98afa3fac6 refactoring 2019-02-23 20:54:20 -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
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
40cf5a5909 fix some docs, partial cache fixes 2019-02-18 12:12:03 -05:00
Anton Lavrenov
dcff79eb63 more warnings and methods 2019-02-13 23:41:32 -05:00
Anton Lavrenov
33d64e194c build fixes, text underline fixes 2019-02-06 12:46:21 -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
d726c5d6f3 add docs, change perf test 2019-01-24 08:45:17 -05:00
Anton Lavrenov
199bbbbff1 some fixes 2019-01-20 18:06:46 -05:00
Anton Lavrenov
521070cb05 fix watch mode 2019-01-19 21:29:52 -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
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
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