scale
title: Scale SVG
types:
SVG: '../svg/index.md'
IconSet: '../icon-set/index.md'
Scaling SVG
This function is part of icon manipulation functions in Iconify Tools.
Function [func]scaleSVG() changes icon size.
For most icons this function is not needed, you can change size by changing [prop]width and [prop]height properties, but it is available anyway.
Usage
Function has the following parameters:
[prop]svg,[type]SVG. Icon instance.[prop]scale,[type]number. Amount to multiply icon dimensions by.
Example
src: libraries/tools/icon/scale.ts
title: 'svgo.ts'
extra:
- src: libraries/tools/icon/scale.svg
title: 'Result:'
这篇文档对你有帮助吗?
谢谢你的反馈!