Discover Packages
code.gitea.io/gitea
modules
svg
package
Version:
v1.22.5
Opens a new window with list of versions in this module.
Published: Dec 11, 2024
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
Documentation
¶
Init discovers SVG icons and populates the `svgIcons` variable
func MockIcon(icon string ) func()
Normalize normalizes the SVG content: set default width/height, remove unnecessary tags/attributes
It's designed to work with valid SVG content. For invalid SVG content, the returned content is not guaranteed.
RenderHTML renders icons - arguments icon name (string), size (int), class (string)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.