Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用您的插件,含有linearGradient的svg图标无法正常显示,其它图标正常 #8

Open
ColourfulU opened this issue Apr 24, 2024 · 1 comment

Comments

@ColourfulU
Copy link

下面是我的svg,无法正常显示,能否给我一个代码示例,帮帮我














@ColourfulU
Copy link
Author

<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> <mask id="mask0_280_81621" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="20" y="20" width="60" height="60"> <path d="M20 20H80V68C80 74.6274 74.6274 80 68 80H20V20Z" fill="white"/> </mask> <g mask="url(#mask0_280_81621)"> <rect x="-8" y="110.341" width="161.702" height="161.702" transform="rotate(-45 -8 110.341)" fill="url(#paint0_linear_280_81621)"/> <path d="M60.7617 73C62.8188 70.094 64.9471 67.5144 66.5288 65.6986C67.4625 64.6266 68.3395 63.6516 69.1789 62.7745C69.9385 61.9806 70.6917 61.2527 71.4157 60.5679C72.6499 59.4002 74.0927 58.1068 75 57.5529L73.8413 56C72.1613 57.0625 70.5442 58.1974 69.2956 59.0694C68.568 59.5777 67.8928 60.0662 67.2564 60.5315C66.6261 60.9925 65.9753 61.4988 65.2891 62.0298C64.0978 62.9518 62.5671 64.1911 61.085 65.4717L57.3659 61.9209L53 65.3991L60.7617 73Z" fill="white"/> </g> <defs> <linearGradient id="paint0_linear_280_81621" x1="45.6276" y1="130.959" x2="119.167" y2="132.374" gradientUnits="userSpaceOnUse"> <stop stop-color="#589EFF"/> <stop offset="1" stop-color="#1D6EF6"/> </linearGradient> </defs> </svg>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant