{"id":21229749,"url":"https://github.com/pansyjs/seal","last_synced_at":"2025-07-10T15:32:22.665Z","repository":{"id":43743390,"uuid":"461469623","full_name":"pansyjs/seal","owner":"pansyjs","description":"强大的印章组件，帮你快速的生成印章。","archived":false,"fork":false,"pushed_at":"2023-12-15T11:45:29.000Z","size":1183,"stargazers_count":69,"open_issues_count":5,"forks_count":21,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-02T01:05:41.846Z","etag":null,"topics":["component","react","seal","typescript","vue"],"latest_commit_sha":null,"homepage":"https://seal.xingkang.wang","language":"TypeScript","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/pansyjs.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}},"created_at":"2022-02-20T11:42:07.000Z","updated_at":"2024-10-28T05:57:31.000Z","dependencies_parsed_at":"2022-09-04T16:31:02.774Z","dependency_job_id":null,"html_url":"https://github.com/pansyjs/seal","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Fseal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Fseal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Fseal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pansyjs%2Fseal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pansyjs","download_url":"https://codeload.github.com/pansyjs/seal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225646565,"owners_count":17501895,"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":["component","react","seal","typescript","vue"],"created_at":"2024-11-20T23:29:20.348Z","updated_at":"2024-11-20T23:29:20.922Z","avatar_url":"https://github.com/pansyjs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://ant.design\"\u003e\n    \u003cimg width=\"200\" src=\"https://cdn.jsdelivr.net/gh/wangxingkang/pictures@latest/imgs/seal.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ePansy Seal\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n  强大的印章组件，帮你快速的生成印章。\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![npm version][npm-v-image]][npm-url] \n[![npm download][download-image]][download-url] \n[![stars-image][stars-image]][stars-url] \n[![forks-image][forks-image]][forks-url] \n[![packagephobia][packagephobia-image]][packagephobia-url] \n  \n\u003c/div\u003e \n\n\u003cdiv\u003e\n  注意！注意！注意！本库只为个人研究学习所用，请勿用于违法相关！\n\u003c/div\u003e\n\n## 🏗 安装\n\n```\n// npm\nnpm install @pansy/seal --save\n\n// yarn\nyarn add @pansy/seal\n\n// pnpm\npnpm install @pansy/seal\n```\n\n## 🔨 使用\n```ts\nimport { Seal } from '@pansy/seal';\n\nconst seal = new Seal({ ... });\n\n// 如果需要修改印章参数，请调用\nseal.update({ ... });\n\n// 销毁印章\nseal.destroy();\n```\n\n## 📸 印章概览\n\n印章包含以下内容\n\n\u003cimg src=\"https://cdn.jsdelivr.net/gh/wangxingkang/pictures@latest/imgs/seal.png\"\u003e\n\n## 🧑‍💻 API\n\n|属性|说明|类型|默认值|\n|---|---|---|---|\n| type | 印章类型，分为公司印章、个人印章 | `company` \\| `personal` |`company`|\n| shape | 指定印章的形状，仅公司印章有效 | `circle` \\| `square`\\| `ellipse` | `circle` |\n| color | 印章颜色，各分部的颜色可单独指定 | `string` | `red` |\n| showTransparent | 是否显示透明背景, 下载时请隐藏 | `boolean` | `true` |\n| width | 指定印章的宽度 | `number` | `300` |\n| height | 指定印章的高度 | `number` | `300` |\n| fiveStar | 五角星配置 | `any` | - |\n| text | 主文字配置 | `any` |-|\n| subText | 副文字配置 | `any` | - |\n| centerText | 中心文字配置 | `any` | - |\n| border | 边线配置 | `any` | - |\n| innerBorder | 内边线配置 | `any` | - |\n| innerLoopLine | 内环线配置 | `any` | - |\n\n## 🌟 社区互助\n\n| Github Issue                                                 | 钉钉群                                                                                     | 微信群                                                                                   |\n| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- |\n| [issues](https://github.com/pansyjs/seal/issues) | \u003cimg src=\"https://github.com/alitajs/alita/blob/master/public/dingding.png\" width=\"100\" /\u003e | \u003cimg src=\"https://github.com/alitajs/alita/blob/master/public/wechat.png\" width=\"100\" /\u003e |\n\n\n\n[npm-v-image]: https://img.shields.io/npm/v/@pansy/seal.svg\n[forks-image]: https://img.shields.io/github/forks/pansyjs/seal.svg\n[stars-image]: https://img.shields.io/github/stars/pansyjs/seal.svg\n[packagephobia-image]: https://packagephobia.com/badge?p=@pansy/seal\n[npm-url]: http://npmjs.org/package/@pansy/seal\n[github-url]: https://github.com/pansyjs/seal\n[stars-url]: https://github.com/pansyjs/seal/stargazers\n[forks-url]: https://github.com/pansyjs/seal/network/members\n[packagephobia-url]: https://packagephobia.com/result?p=@pansy/seal\n[download-image]: https://img.shields.io/npm/dm/@pansy/seal\n[download-url]: https://npmjs.org/package/@pansy/seal\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpansyjs%2Fseal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpansyjs%2Fseal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpansyjs%2Fseal/lists"}