Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
getTextDimensions supports maxWidth (#2824)
* Now maxTextWidth can be specified and the number of lines can automatically be inferred based on that and the text width * Change the name of maxTextWidth to maxWidth so that it is consistent with the naming for text * Changed to using splitTextToSize and updated the test to fit the actual result * Changed to using splitTextToSize for arrays as well to stay consistent * Update tests and change cell.js according to PR feedback * Now it should work exactly the same as the text method Co-authored-by: Niklas Moss <nin@envidan.dk> Co-authored-by: Lukas Hollaender <lukas.hollaender@yworks.com>
- Loading branch information
1 parent
11506e0
commit 511d4f6
Showing
2 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters