{"id":13577715,"url":"https://github.com/gdsestimating/three-dxf","last_synced_at":"2025-04-08T08:14:25.987Z","repository":{"id":30905875,"uuid":"34463686","full_name":"gdsestimating/three-dxf","owner":"gdsestimating","description":"A dxf viewer for the browser using three.js","archived":false,"fork":false,"pushed_at":"2024-01-29T09:05:30.000Z","size":944,"stargazers_count":579,"open_issues_count":30,"forks_count":175,"subscribers_count":34,"default_branch":"master","last_synced_at":"2025-04-01T07:49:20.328Z","etag":null,"topics":["browser","dxf","nodejs","threejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gdsestimating.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-04-23T15:09:55.000Z","updated_at":"2025-03-28T11:41:30.000Z","dependencies_parsed_at":"2024-06-18T22:42:39.601Z","dependency_job_id":"b0f226cc-5d4d-404e-a69c-97dff4f1c85c","html_url":"https://github.com/gdsestimating/three-dxf","commit_stats":{"total_commits":62,"total_committers":7,"mean_commits":8.857142857142858,"dds":"0.11290322580645162","last_synced_commit":"20e14cbd13735e16a1b691f7b864936dd688fb74"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsestimating%2Fthree-dxf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsestimating%2Fthree-dxf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsestimating%2Fthree-dxf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gdsestimating%2Fthree-dxf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gdsestimating","download_url":"https://codeload.github.com/gdsestimating/three-dxf/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247801169,"owners_count":20998339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser","dxf","nodejs","threejs"],"created_at":"2024-08-01T15:01:23.789Z","updated_at":"2025-04-08T08:14:25.958Z","avatar_url":"https://github.com/gdsestimating.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\n# Three-Dxf\n\n**Three-Dxf** is a javascript viewer for dxf files. It takes dxf objects produced from Dxf-Parser and renders them using\n three.js.\n\n#### Install\n```\nnpm install three-dxf\n```\n\nFor now we recommend cloning the repo, and starting with our sample. See **Run Samples** below.\n\n![Example of the viewer](https://github.com/gdsestimating/three-dxf/blob/screenshots/screenshots/three-dxf-screenshot.png?raw=true \"What the sample looks like\")\n\n#### Usage\n```javascript\n// See index.js in the sample for more details\nvar parser = new window.DxfParser();\nvar dxf = parser.parseSync(fileReader.result);\ncadCanvas = new ThreeDxf.Viewer(dxf, document.getElementById('cad-view'), 400, 400);\n```\n\n#### Run Samples\n```\n# first, compile three-dxf\n\u003e npm install\n\u003e npm run build\n\n# then install the sample's dependencies\n\u003e cd sample\n\u003e npm install\n\n# go back to the root and run http-server to run the sample\n\u003e cd ..\n\u003e npm install -g http-server@0.9.0\n\u003e http-server .\n# use `http-server -c-1 .` to prevent caching\n```\n\nAfter performing the steps above, you can see the example at [http://127.0.0.1:8080/sample/index.html](http://127.0.0.1:8080/sample/index.html). You can use the dxf file included in the sample. **NOTE: the latest version of http-server will go into a redirect loop if you exlcude \"/index.html\" from the url.**\n\n\n#### Supported DXF Features\nSupports:\n* Most LW entities (lines, polylines, circles, etc)\n* Layers\n* Simple Text\n* Splines\n* Ellipses\n* Text and MText (Basic multiline support available in v1.3.0 but not all formatting is supported)\n \nDoes not yet support:\n* Attributes\n* 3DSolids\n* All types of Leaders\n* other less common objects and entities.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdsestimating%2Fthree-dxf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgdsestimating%2Fthree-dxf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgdsestimating%2Fthree-dxf/lists"}