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:

Example

src: libraries/tools/icon/scale.ts
title: 'svgo.ts'
extra:
  - src: libraries/tools/icon/scale.svg
    title: 'Result:'

版本号 #2
由 壳壳虫 创建于 2026-10-31 14:25:56 UTC
由 壳壳虫 更新于 2026-10-31 14:25:56 UTC