{"id":19838193,"url":"https://github.com/oceanpresentchao/peintre","last_synced_at":"2025-05-01T18:31:01.871Z","repository":{"id":57697771,"uuid":"492234396","full_name":"OceanPresentChao/Peintre","owner":"OceanPresentChao","description":"A configurable canvas painter component for Vue3","archived":false,"fork":false,"pushed_at":"2023-01-14T05:22:22.000Z","size":530,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-28T12:57:46.743Z","etag":null,"topics":["canvas","painter","typescript","vue","vuejs"],"latest_commit_sha":null,"homepage":"","language":"Vue","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/OceanPresentChao.png","metadata":{"files":{"readme":"README.EN.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}},"created_at":"2022-05-14T14:09:53.000Z","updated_at":"2024-11-09T20:27:38.000Z","dependencies_parsed_at":"2023-02-09T18:45:40.503Z","dependency_job_id":null,"html_url":"https://github.com/OceanPresentChao/Peintre","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/OceanPresentChao%2FPeintre","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OceanPresentChao%2FPeintre/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OceanPresentChao%2FPeintre/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OceanPresentChao%2FPeintre/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OceanPresentChao","download_url":"https://codeload.github.com/OceanPresentChao/Peintre/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251924663,"owners_count":21666013,"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":["canvas","painter","typescript","vue","vuejs"],"created_at":"2024-11-12T12:17:01.397Z","updated_at":"2025-05-01T18:31:01.444Z","avatar_url":"https://github.com/OceanPresentChao.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Peintre\n\nA lightweight configurable Vue3 canvas painter component. \n\n\u003cp align='center'\u003e\n\u003ca href='./README.EN.md'\u003eEnglish\u003c/a\u003e | 简体中文\n\u003c/p\u003e\n\n## Feature\n\n1. Multi Layer √\n2. Change Tool Color\u0026Size √\n3. Rectangle、Circle,etc Tool √\n4. Pressure Support √\n5. Mobile Touch Support √\n6. Switch Layer with Dragging √\n7. Change Tool Size with Scroll Event √\n8. Redo Support √\n\n## Live Demo\n\n[Demo](https://oceanpresentchao.github.io/Peintre/)\n\n\n## Installation\n\n### With npm\n\n```bash\nnpm i -S peintre\n```\n\n## Usage\n\n```html\nimport {Painter} from \"peintre\"\n\n\u003cPainter :pressure=\"false\" :width=\"800\" :height=\"600\" :maxLine=\"500\" :minLine=\"1\"\u003e\u003c/Painter\u003e\n\n```\n## Props\n\n| Attribute  | Description | Type                                          | Default |\n| ---------  | ----------- | --------------------------------------------- | ------- |\n| width    | canvas width   | number |   800     |\n| height    | canvas height   | number |   600     |\n| maxLine    | max context linewidth   | number |   500     |\n| minLine    | min context linewidth   | number |   1     |\n| pressure    | whether support pressure or not   | boolean |   false    |\n| lang    | Language   | string |  \"zh\" \\| \"en\"    |\n\n## DevelopmentBlog(zh-CN)\n[Peintre DevelopmentBlog](http://oceanpresent.art/posts/hard-boiled-wonderland/peintre)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foceanpresentchao%2Fpeintre","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foceanpresentchao%2Fpeintre","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foceanpresentchao%2Fpeintre/lists"}