three-dxf-viewer icon indicating copy to clipboard operation
three-dxf-viewer copied to clipboard

Is your library available in native JS without NodeJS ?

Open Xavlight opened this issue 1 year ago • 2 comments

Hi,

Your bookshop works perfectly, and the quality is really very good. I develop in PHP/HTML/JS, but not in nodejs (no NodeJS server available, I opted for PHP). I would have liked to use your solution in native javascript (on the front end, like chrome or web browser, without server NodeJS). I've been struggling for several days to convert it, but I'm having a lot of trouble. There are a lot of imports.

Can you help me?

Sorry for my poor English. French.

Xavlight

Xavlight avatar Jul 10 '23 09:07 Xavlight

This is strange, since the code should work on browser without any help. Most browsers, if not all, already support ES6 classes already, so there is no need to transpile anything. Did you use the bundled version from npmjs? it is already bundled and can be used as a standalone js file (or should be used at least). You can download the main.js from inside dist folder from here: code Or you could use a CDN. You can find some using google, like this one: https://www.jsdelivr.com/package/npm/three-dxf-viewer

Let me know if these helps.

ieskudero avatar Jul 11 '23 06:07 ieskudero

Hi,

I'm sorry to ask for your help again. I don't know ESM5/6 coding at all and still old school for HTML/JS. I did try to create an .html that calls the index.js module. But to no avail.

If you have a little time, please create me an HTML/JS that calls all the right libraries to be functional.

Thank you very much.

Xavlight avatar Jul 11 '23 12:07 Xavlight