{"id":13650418,"url":"https://github.com/drskullster/hpgl-viewer","last_synced_at":"2025-06-13T07:10:46.216Z","repository":{"id":33636817,"uuid":"111309638","full_name":"drskullster/hpgl-viewer","owner":"drskullster","description":"Javascript HPGL viewer using Canvas","archived":false,"fork":false,"pushed_at":"2023-04-19T13:11:30.000Z","size":1673,"stargazers_count":19,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-22T04:17:50.711Z","etag":null,"topics":["hpgl","javascript"],"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/drskullster.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}},"created_at":"2017-11-19T15:53:27.000Z","updated_at":"2024-05-09T23:49:43.000Z","dependencies_parsed_at":"2024-04-14T16:58:44.875Z","dependency_job_id":"01dae96d-d73d-4d0a-8c8f-3708ad14cbd6","html_url":"https://github.com/drskullster/hpgl-viewer","commit_stats":{"total_commits":44,"total_committers":4,"mean_commits":11.0,"dds":0.2954545454545454,"last_synced_commit":"a34bfbef2a3f3ae6fd2b988996c7ace46a6142e5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/drskullster/hpgl-viewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drskullster%2Fhpgl-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drskullster%2Fhpgl-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drskullster%2Fhpgl-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drskullster%2Fhpgl-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drskullster","download_url":"https://codeload.github.com/drskullster/hpgl-viewer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drskullster%2Fhpgl-viewer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259599328,"owners_count":22882357,"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":["hpgl","javascript"],"created_at":"2024-08-02T02:00:36.633Z","updated_at":"2025-06-13T07:10:46.174Z","avatar_url":"https://github.com/drskullster.png","language":"JavaScript","funding_links":[],"categories":["Software"],"sub_categories":["HPGL"],"readme":"# HPGLViewer\nJavascript HPGL viewer using HTML5 Canvas.\n\n**Warning:** This is an early release, only a\nhandful of HPGL code is handled. If you would like to \ncontribute, please do !\n\nThe code (as well as the doc) is really simple and straightforward for now, \nthe idea is to see if there are people interested in a library\nto use in their own project, or just in an online viewer, or no one is interested\nbecause HPGL is sooo old.\n\n## Demo\n\nhttps://drskullster.github.io/hpgl-viewer/demo\n\n## Usage\n\nCreate a HTML Canvas element in your HTML page :\n\n    \u003ccanvas id=\"hpgl-viewer\"\u003e\u003c/canvas\u003e\n\nDownload `HPGLViewer.js` file in `src/` folder \nthen initialize with :\n\n    var hpglViewer = new HPGLViewer({\n        container: \"hpgl-viewer\", // ID of the HTML Canvas element\n        canvasWidth: 900, // in px\n        machineTravelWidth: 416, // in mm\n        machineTravelHeight: 259 // in mm\n    });\n    \nFeed HPGL content to viewer :\n\n    hpglViewer.draw(\"PU0,0;PD4000,4000;\")\n\n## Development\n\nLibrary is packaged into a UMD module with webpack.\n\nYou can run a development server that will watch changes\nand reload the demo page with `npm run dev`.\n\n## HPGL Commands\n\n### Done\n\n* `PU` Pen Up (simply move on canvas)\n* `PD` Pen Down\n* `PA` Plot with absolute coordinates\n* `AA` Arc\n* `SP` Pen Select\n\n### Ignored\n\n* `IN` Initialize\n* `VS` speed select\n\n### Todo\n\n* `CP` and other Text related commands\n* `CI` Circles\n* `PR` Position relative to next point ?\n* `IP` and `SC` machine scale ?\n\n## Reference\n\nSee here for a list of HPGL commands :\n* http://www.isoplotec.co.jp/HPGL/eHPGL.htm#-%20Plotter%20coordinate%20system\n* http://paulbourke.net/dataformats/hpgl/ \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrskullster%2Fhpgl-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrskullster%2Fhpgl-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrskullster%2Fhpgl-viewer/lists"}