{"id":19055222,"url":"https://github.com/sangupta/draftboard","last_synced_at":"2025-02-22T01:23:48.471Z","repository":{"id":43027667,"uuid":"510879942","full_name":"sangupta/draftboard","owner":"sangupta","description":"A cartesian coordinate based drafting board that can render to SVG and Canvas.","archived":false,"fork":false,"pushed_at":"2022-09-20T23:57:05.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-02T11:21:13.110Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sangupta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-05T20:08:22.000Z","updated_at":"2022-07-05T20:12:52.000Z","dependencies_parsed_at":"2023-01-18T16:32:39.358Z","dependency_job_id":null,"html_url":"https://github.com/sangupta/draftboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fdraftboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fdraftboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fdraftboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sangupta%2Fdraftboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sangupta","download_url":"https://codeload.github.com/sangupta/draftboard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240111484,"owners_count":19749497,"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":[],"created_at":"2024-11-08T23:43:11.981Z","updated_at":"2025-02-22T01:23:48.453Z","avatar_url":"https://github.com/sangupta.png","language":"TypeScript","readme":"# DraftBoard\n\n`draftboard` is a cartesian coordinate based drafting board that can render to SVG and Canvas.\nIt is useful in creating `drawings` using the cartesian system, which can then be rendered to\ntop-left coordinate systems. This allows us to think in mathematical system than thinking in\nrendering system.\n\nIt can be used to create diagrams such as line/pie/bar chart, flow diagrams, gantt charts, etc.\n\nThe following are unqiue features of `draftboard`\n\n* Usage of cartesian coordinate system\n* Allow moving origin\n\n# Shapes\n\nThe following simple shapes form the base of `draftboard`:\n\n* Arc\n* Circle (also, radial arc)\n* Ellipse\n* Line\n* Polygon\n* Polyline\n* Rectangle\n* Text\n\nThese shapes allow us to form complex shapes by composing them in a single object. For example,\na `Triangle.decompose()` will return an array of `Line` instances. Thus, a renderer, which knows\nhow to render above simple shapes can readily render the following by just invoking the `decompose()`\nmethod. Available composite shapes are:\n\n* Marker\n* Slice\n* Triangle\n\n# Author\n\n* [Sandeep Gupta](https://sangupta.com)\n\n# License\n\nMIT License. Copyright (C) 2022, Sandeep Gupta.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsangupta%2Fdraftboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsangupta%2Fdraftboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsangupta%2Fdraftboard/lists"}