{"id":23207041,"url":"https://github.com/gitbruno/polyplotter","last_synced_at":"2025-08-14T21:24:11.194Z","repository":{"id":68985014,"uuid":"99991861","full_name":"GitBruno/PolyPlotter","owner":"GitBruno","description":"An InDesign ExtendScript module to plot polygons","archived":false,"fork":false,"pushed_at":"2018-07-18T04:21:55.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T16:28:33.433Z","etag":null,"topics":["construct","draw","extendscript","indesign","module","plot-polygons","plotting"],"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/GitBruno.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":"2017-08-11T04:34:06.000Z","updated_at":"2024-09-24T17:58:47.000Z","dependencies_parsed_at":"2023-02-28T23:30:22.705Z","dependency_job_id":null,"html_url":"https://github.com/GitBruno/PolyPlotter","commit_stats":null,"previous_names":["gitbruno/polyplotter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GitBruno/PolyPlotter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBruno%2FPolyPlotter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBruno%2FPolyPlotter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBruno%2FPolyPlotter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBruno%2FPolyPlotter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GitBruno","download_url":"https://codeload.github.com/GitBruno/PolyPlotter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GitBruno%2FPolyPlotter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266496337,"owners_count":23938711,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["construct","draw","extendscript","indesign","module","plot-polygons","plotting"],"created_at":"2024-12-18T17:17:28.958Z","updated_at":"2025-07-22T12:33:30.021Z","avatar_url":"https://github.com/GitBruno.png","language":"JavaScript","readme":"# PolyPlotter\nAn ExtendScript module to plot polygons in InDesign.\n\n## Loading the module\nYou can import this module using the preprocessor directive:\n\n    #include 'polyPlotter.js'\n\nTo start a drawing create a new plotter object with:\n\n    var P = new polyPlotter();\n\n## Plotting\nI mainly wrote this module as drawing paths in InDesign is slow. Constructing the entire path virtually before drawing anchors in the document is the quickest way to draw polygons onto the page. To construct a square of 10 units do:\n\n    P.newPath()\n    P.moveTo( 10, 10 )\n    P.lineTo( 20, 10 )\n    P.lineTo( 20, 20 )\n    P.lineTo( 10, 20 )\n    P.closePath()\n\nInstead of the square above we can use a primitive instead:\n\t\n    P.addRect( 10, 10, 10, 10 );\n\nWe can also copy existing paths:\n\n    P.copyShape( pageItem, { resetBounds: true });\n    P.drawToPage( pageItem.parentPage, {x: 0, y: 0, scale: 100} );\n\n## Drawing to the page\nThe easiest method to draw the virtual path into your document, is by using the `drawToPage()` method:\n\n    P.drawToPage( page )\n    \nYou can update your `scale` and `location` anytime before calling the `drawToPage` function.\n\n    P.drawOffset( x, y )  \n    P.drawScale ( 150  )  \n\nOr you can pass your `preference` straight to the draw function.\n\n    P.drawToPage( page, {x:10, y:10, scale:150} )\n\n\nLicence\n---------\nMIT license (MIT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbruno%2Fpolyplotter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitbruno%2Fpolyplotter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitbruno%2Fpolyplotter/lists"}