gdsestimating / three-dxf

A dxf viewer for the browser using three.js
MIT License
535 stars 170 forks source link

Cannot display the value of the size #96

Open fanerger opened 7 months ago

fanerger commented 7 months ago

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 commented 7 months ago

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

fanerger commented 7 months ago

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)