{"id":17466958,"url":"https://github.com/634750802/chartjs-plugin-roughness","last_synced_at":"2026-03-10T02:02:20.381Z","repository":{"id":172590704,"uuid":"649186423","full_name":"634750802/chartjs-plugin-roughness","owner":"634750802","description":"Handwrite style plugin for chart.js.","archived":false,"fork":false,"pushed_at":"2023-06-25T08:06:48.000Z","size":124,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T16:25:55.396Z","etag":null,"topics":["chartjs","roughjs","roughness"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/634750802.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T04:07:12.000Z","updated_at":"2024-09-30T06:27:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"d66afc2f-fe86-4d7b-954c-c7ebac8514dc","html_url":"https://github.com/634750802/chartjs-plugin-roughness","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"20a19edfafb46ef58e8b82132450132ed820fe0e"},"previous_names":["634750802/chartjs-plugin-roughness"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/634750802%2Fchartjs-plugin-roughness","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/634750802%2Fchartjs-plugin-roughness/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/634750802%2Fchartjs-plugin-roughness/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/634750802%2Fchartjs-plugin-roughness/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/634750802","download_url":"https://codeload.github.com/634750802/chartjs-plugin-roughness/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249824194,"owners_count":21330276,"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":["chartjs","roughjs","roughness"],"created_at":"2024-10-18T14:07:54.507Z","updated_at":"2026-03-10T02:02:15.342Z","avatar_url":"https://github.com/634750802.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chartjs-plugin-roughness\n\n![demo](demo/rs-canvas/image.png)\n\n## Usage\n\n### h5\n\n```js\nimport 'chartjs-plugin-roughness'\n\nnew Chart(..., {\n  ...,\n  plugins: {\n    roughness: {\n      disabled: true // enable by default if imported chartjs-plugin-roughness\n      // more rough options\n    }\n  }\n})\n```\n\n### SSR\n\n`@napi-rs/canvas` is supported for SSR, see [demo](demo/rs-canvas).\n\n### Rough Options\n\nSee [rough options](https://github.com/rough-stuff/rough/wiki#options) for more options.\n\n### Caution\n\n- This package should be imported before `chart.js`.\n- This package [override](./bar.element.patch.js) `BarElement.draw` method if roughness was enabled.\n- This package [override](./filler.patch.js) `Filler` hooks for clearing stroke colors to prevent area border.\n- This package [override](./context2d.patch.js) `beginPath`, `closePath`, `fill`, `stroke`, `moveTo`, `lineTo`, `arcTo`,\n  `arc`, `quadraticCurveTo`, `rect`, `ellipse`, `bezierCurveTo` while roughness chart rendering. `ellipse` was **not**\n  implemented by `roughjs`, you should provide your own polyfill if you want this feature.\n- This package [override](./path2d.patch.js) `window.Path2D` class and should act same as original.\n- This package [override](./tooltip.patch.js) `TooltupPlugin` class to skip drawing tooltip background using roughness.\n  Set tooltip plugin option `preventSkipBackgroundRoughness` to `true` to prevent it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F634750802%2Fchartjs-plugin-roughness","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F634750802%2Fchartjs-plugin-roughness","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F634750802%2Fchartjs-plugin-roughness/lists"}