I'm using the following CDN link to import the library in a Blazor app. I have managed to parse the file using "dxf-parser", but cannot make the viewer work. I've tried using ThreeDxf.Viewer and Viewer, but none of them work:
cadCanvas = new ThreeDxf.Viewer(dxf, document.getElementById("dxf-canvas"), 400, 400);
cadCanvas = new Viewer(dxf, document.getElementById("dxf-canvas"), 400, 400);
Always getting the following error:
The scripts are correctly loaded, and DxfParser is available.
UPDATE:
Finally I managed to import the three-dxf Viewer, but it doesn't work in Blazor server. It returns the following error. Any hint?
I'm using the following CDN link to import the library in a Blazor app. I have managed to parse the file using "dxf-parser", but cannot make the viewer work. I've tried using ThreeDxf.Viewer and Viewer, but none of them work:
Always getting the following error:
The scripts are correctly loaded, and DxfParser is available.
UPDATE:
Finally I managed to import the three-dxf Viewer, but it doesn't work in Blazor server. It returns the following error. Any hint?