fix: line width is too small to display any characters#1956
Merged
Conversation
âŠy any characters
wang1212
added a commit
that referenced
this pull request
Jun 27, 2025
* fix: ð Fix invalid URL links (#1951) * fix: terminate immediately when the line width is too small to display any characters (#1956) * docs: update documentation and examples * fix(svg-renderer): add x and y attributes to foreignObject in SVGRenderer (#1961) Add support for x and y attributes in foreignObject elements to ensure proper positioning in SVG rendering. * docs: update documentation formatting and update dependencies * perf: optimize element event distribution and attribute update process (#1944) * fix(plugin-box2d): remove trailing slash from BOX2D_UMD_DIR * perf: optimize element event distribution and attribute update process * feat: use RIC to avoid frequent calls syncRTree (#1960) * perf: optimize element event distribution and attribute update process * perf: å¢å enableRICSyncRTree --------- Co-authored-by: wang1212 <[email protected]> * chore: fix lint error * refactor: enhance performance optimization with experimental features - Move performance-related configurations from runtime to canvas config - Introduce experimental feature flags in CanvasConfig for better control - Optimize event propagation and attribute updates - Add RIC (RequestIdleCallback) for syncRTree operations - Improve type safety and code organization --------- Co-authored-by: huiyu.zjt <[email protected]> * chore: add changeset * chore(release): bump version (#1958) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: iaosee <[email protected]> Co-authored-by: huiyu.zjt <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ð€ This is a ...
ð Related issue link
ð¡ Background and solution
In the past, implementations of text line breaks that encountered a situation where the current line could not display any characters would continue to test the next line until the
maxlineslimit was encountered.If the
wordWrapWidthwas so small that it couldn't even display a single character, it made no sense to continue testing subsequent lines, and created redundant blank lines.Now, if the current line encounters an arbitrary character that cannot be displayed, it will be terminated immediately.
ð Changelog
âïž Self Check before Merge