Open fanerger opened 7 months ago
"three": "0.125.0", "three-dxf": "1.3.1",
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)
The value of the size cannot be displayed just after loading, But scrolling the mouse to zoom can be displayed;
Just loaded:![image](https://github.com/gdsestimating/three-dxf/assets/19178610/6f2605d4-4e82-41e6-adf7-ce94b29f0b27)
When I scroll the mouse:![image](https://github.com/gdsestimating/three-dxf/assets/19178610/1a6c7581-2287-4c1b-952d-00e1dff4411f)