Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[g] Text 的 getComputedLength 返回 0 #1651

Closed
xiaoiver opened this issue Mar 28, 2024 · 0 comments
Closed

[g] Text 的 getComputedLength 返回 0 #1651

xiaoiver opened this issue Mar 28, 2024 · 0 comments

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Mar 28, 2024

最小复现 demo 如下:

const text = new Text({
  style: {
    text: '这',
    fontSize: 100,
  },
});
text.getComputedLength(); // 0
xiaoiver added a commit that referenced this issue Mar 28, 2024
* fix: update geometry before getting computed length #1651 (#1652)

* chore: commit changeset (#1653)

* chore: commit changeset

* fix: set default fill & stroke to 'none' in rough.js

* chore: commit changeset

* chore(release): bump version (#1654)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant