{"id":13445870,"url":"https://github.com/sunniejs/vue-canvas-poster","last_synced_at":"2025-05-16T18:09:07.949Z","repository":{"id":37808684,"uuid":"199963048","full_name":"sunniejs/vue-canvas-poster","owner":"sunniejs","description":"vue生成海报图，一个通过 css 属性画 canvas 图片的轻量级的 vue 组件 (Vue poster,a lightweight vue component that draws canvas images via css properties.)","archived":false,"fork":false,"pushed_at":"2023-01-04T06:07:11.000Z","size":6344,"stargazers_count":536,"open_issues_count":55,"forks_count":91,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-03T18:13:04.728Z","etag":null,"topics":["canvas","css-canvas-vue","css-properties","draws-canvas-images","painter","poster","vue","vue-canvas-poster"],"latest_commit_sha":null,"homepage":"https://sunniejs.github.io/vue-canvas-poster/","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/sunniejs.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":"2019-08-01T02:39:40.000Z","updated_at":"2025-04-02T06:49:10.000Z","dependencies_parsed_at":"2023-02-02T00:32:10.704Z","dependency_job_id":null,"html_url":"https://github.com/sunniejs/vue-canvas-poster","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/sunniejs%2Fvue-canvas-poster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunniejs%2Fvue-canvas-poster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunniejs%2Fvue-canvas-poster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunniejs%2Fvue-canvas-poster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunniejs","download_url":"https://codeload.github.com/sunniejs/vue-canvas-poster/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248600606,"owners_count":21131517,"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","css-canvas-vue","css-properties","draws-canvas-images","painter","poster","vue","vue-canvas-poster"],"created_at":"2024-07-31T05:00:40.970Z","updated_at":"2025-04-12T16:45:39.777Z","avatar_url":"https://github.com/sunniejs.png","language":"JavaScript","funding_links":[],"categories":["Libraries"],"sub_categories":["Poster and Screenshot"],"readme":"# Vue Canvas Poster 🎉\n\n\u003e [Vue Canvas Poster](https://sunniejs.github.io/vue-canvas-poster/#/) 一个通过 css 属性画 canvas 图片的轻量级的 vue 组件。 (A lightweight vue components use canvas draw image by css properties.)\n\n\u003e [Vue Canvas Poster 文档](https://sunniejs.github.io/vue-canvas-poster/#/)\n\n#### 主要特性：\n\n- 绘制文本(换行、超出内容省略号、中划线、下划线、文本加粗、文字缩进)\n- 绘制图片(圆角、旋转、边框、模式:类似小程序 image mode)\n- 绘制矩形(圆角、旋转、边框)\n- 绘制二维码\n- 渐变\n- 阴影\n\n#### 为什么使用 vue-canvas-poster\n\n**简单：** 使用类`css`属性的方式生成`canvas`图。  \n**易用：** 通过`npm`安装，简单上手 。  \n**无依赖：** 无其他依赖库。  \n**高清：** 可以通过 `widthPixels` 设置生成图片尺寸，解决图片模糊问题。\n\n#### 升级说明\n\nv1.2.0 2020-12-25  1. 文字添加 textIndent 属性，可为文字添加首行缩进样式。2. 文字fontWeight 字重，从原来只能设置'normal', 'bold' 现在增加至可设置'normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900'。\n\n\nv1.0.0 以上增加了很多特性，新老版本不兼容，请谨慎升级，老版本不在维护，如果你用的是老版本的请移步 [0.1.16](https://github.com/sunniejs/vue-canvas-poster/tree/0.1.16)\n\n注意：版本 v1.1.1 及以上采用 `VueCanvasPoster` 大写，低版本`vueCanvasPoster`升级需要修改\n\n```\nimport { VueCanvasPoster } from 'vue-canvas-poster'\n```\n\n#### 预览\n\n\u003cp\u003e\n  \u003cimg src=\"./static/demo.png\" width=\"256\" style=\"display:inline;\"\u003e\n\u003c/p\u003e\n\n#### 线上 Demo\n\n[查看 demo](https://www.sunniejs.cn/vant-demo/#/example/poster) 建议手机端查看\n\n手机扫码查看\n\n \u003cp\u003e\n  \u003cimg src=\"./static/qrcode.png\" width=\"256\" style=\"display:inline;\"\u003e\n\u003c/p\u003e\n\n#### 上线项目\n\n\u003cp\u003e\n  \u003cimg src=\"./static/online.png\" width=\"256\" style=\"display:inline;\"\u003e\n\u003c/p\u003e\n\n#### 关注我的知乎，掘金\n\n知乎: [vue canvas 生成微信分享海报](https://zhuanlan.zhihu.com/p/150478131)  \n掘金: [vue canvas 生成微信分享海报](https://juejin.im/post/5d47e18c6fb9a06b1f1415f3)\n\n#### 特别鸣谢 ​\n\n[Painter](https://github.com/Kujiale-Mobile/Painter)\n\n#### 贡献代码\n\n使用过程中发现任何问题都可以提[Issue](https://github.com/sunniejs/vue-canvas-poster/issues) 给我，也非常欢迎 PR 或 [Pull Request ](https://github.com/sunniejs/vue-canvas-poster/pulls)\n\n#### 如何找到失散已久的组织？\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;扫描下方二维码:point_down::point_down:关注“前端女塾”\n\n \u003cp\u003e\n  \u003cimg src=\"./static/gognzhonghao.jpg\" width=\"256\" style=\"display:inline;\"\u003e\n\u003c/p\u003e\n\n关注公众号：回复“加群”即可加 前端仙女群\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunniejs%2Fvue-canvas-poster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunniejs%2Fvue-canvas-poster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunniejs%2Fvue-canvas-poster/lists"}