Coder Social home page Coder Social logo

Drawing function about dxf-viewer HOT 10 OPEN

vagran avatar vagran commented on August 20, 2024
Drawing function

from dxf-viewer.

Comments (10)

vagran avatar vagran commented on August 20, 2024

Hi! You can use DxfViewer.GetScene() method to obtain three.js scene object which can be used to add any additional objects to render. To match model space coordinates you should subtract scene origin from your objects coordinates. The origin can be obtained by DxfViewer.GetOrigin() method.

from dxf-viewer.

kamildul avatar kamildul commented on August 20, 2024

Hi Vagran,

thanks for your response, where is tutorial for instalation without node, i want install only javascript+html version.

When i install via node cmd with command : npm install dxf-viewer I get the result:

obraz

I dont see example version in HTML + Javascript :-(

from dxf-viewer.

vagran avatar vagran commented on August 20, 2024

There is currently no any bundle build. You can find usage example in typical full-featured web application here.

from dxf-viewer.

kamildul avatar kamildul commented on August 20, 2024

Will this compilation be available?

from dxf-viewer.

vagran avatar vagran commented on August 20, 2024

Currently it is not planned for this version. Bundle building is planned for next major release which will be rewritten in TypeScript.

from dxf-viewer.

kamildul avatar kamildul commented on August 20, 2024

I understand, can you help me run your solution from the simplest version without node to open a dxf file? Only html and js?

from dxf-viewer.

vagran avatar vagran commented on August 20, 2024

I doubt I can help there, since I am not really familiar with modern web application build toolchain, so I also need to spend some time for some research. You may invest your time in learning some of web building tools (like rollup, webpack, esbuild etc.) and producing a bundle. Then check the code in the example mentioned above to get basic understanding how the library is used.

from dxf-viewer.

kamildul avatar kamildul commented on August 20, 2024

Ok, where i find documentation?

from dxf-viewer.

vagran avatar vagran commented on August 20, 2024

The library API is documented by JsDoc comments in the source code.

from dxf-viewer.

kamildul avatar kamildul commented on August 20, 2024

Thanks, but still i dont know how i can run this library, i need simple example only index.html where i add patch to the dxf file, and finally in browser index.html show dxf file...

from dxf-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.