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

Cannot display the value of the size #96

Open
fanerger opened this issue Jan 12, 2024 · 2 comments
Open

Cannot display the value of the size #96

fanerger opened this issue Jan 12, 2024 · 2 comments

Comments

@fanerger
Copy link

The value of the size cannot be displayed just after loading, But scrolling the mouse to zoom can be displayed;

Just loaded:
image

When I scroll the mouse:
image

@fanerger
Copy link
Author

"three": "0.125.0",
"three-dxf": "1.3.1",

@fanerger
Copy link
Author

It looks like the font library is loading asynchronously, so I added a delay to it,It worked!

const ver = new Viewer(dxf, document.getElementById('cad-view'), width, height, font);
setTimeout(()=> {
ver.render()
}, 300)

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