{"id":16039952,"url":"https://github.com/sonofmagic/miniprogram-qrcode-clip","last_synced_at":"2025-04-05T06:13:53.436Z","repository":{"id":45525755,"uuid":"422054363","full_name":"sonofmagic/miniprogram-qrcode-clip","owner":"sonofmagic","description":"clip miniprogram qrcode center circle area at client side to your custom image! ","archived":false,"fork":false,"pushed_at":"2023-12-15T11:42:52.000Z","size":117,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T21:08:23.776Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sonofmagic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-28T03:40:56.000Z","updated_at":"2023-10-27T09:29:54.000Z","dependencies_parsed_at":"2023-12-15T12:49:48.015Z","dependency_job_id":null,"html_url":"https://github.com/sonofmagic/miniprogram-qrcode-clip","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/sonofmagic%2Fminiprogram-qrcode-clip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fminiprogram-qrcode-clip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fminiprogram-qrcode-clip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sonofmagic%2Fminiprogram-qrcode-clip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sonofmagic","download_url":"https://codeload.github.com/sonofmagic/miniprogram-qrcode-clip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294550,"owners_count":20915340,"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-10-08T23:09:12.866Z","updated_at":"2025-04-05T06:13:53.414Z","avatar_url":"https://github.com/sonofmagic.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# miniprogram-qrcode-clip\n\nclip miniprogram qrcode center circle area at client side to your custom image!\n\n[原理(Principle)](./Principle_CN.md)\n\n## Demo\n\nFrom:\n\n![Form](./assets/icebreaker.raw.jpg)\n\nTo:\n\n![To](./assets/custom.jpg)\n\n## How to use it\n\n### uni-app:\n\n```ts\nimport QrcodeImage from 'miniprogram-qrcode-clip/libs/uni/Image.vue'\n\nexport default Vue.extend({\n  ...\n  components: { QrcodeImage }\n  ...\n}\n\n\u003ctemplate\u003e\n  \u003cQrcodeImage\n    :loading=\"false\"\n    :src=\"qrcodeUrl\"\n    :avatarUrl=\"avatarUrl\"\n    :width=\"440\"\n    :height=\"440\"\n    ref=\"QrcodeImage\"\n  \u003e\u003c/QrcodeImage\u003e\n\u003c/template\u003e\n\n\nawait this.$refs.QrcodeImage?.preview()\nawait this.$refs.QrcodeImage?.show()\nawait this.$refs.QrcodeImage?.getImage()\n```\n\n\u003e notice: current version not support default qrcode size (430px * 430px)\n\n## Props\n|attr|type|desc|\n|---|---|---|\n|loading|Boolean|loading status|\n|src|string|background image url|\n|avatarUrl|string|center circle image url|\n|width|number|width(rpx)|\n|height|number|height(rpx)|\n|covered|Boolean|default: true(for .png transparent background)|\n|coveredFillStyle|string|default: #ffffff coveredFillStyle|\n\n## Methods\n\n|name|return type|desc|\n|---|---|---|\n|init|void|init|\n|show|Promise\\\u003cvoid\u003e|show qrcode|\n|drawAvatar|Promise\\\u003cvoid\u003e|drawAvatar|\n|drawBg|Promise\\\u003cvoid\u003e|drawBg|\n|preview|Promise\\\u003cvoid\u003e|preview image|\n|getImage|Promise\\\u003cstring\u003e| get tempFilePath|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Fminiprogram-qrcode-clip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonofmagic%2Fminiprogram-qrcode-clip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonofmagic%2Fminiprogram-qrcode-clip/lists"}