Package-level declarations

Types

Link copied to clipboard

This enum class is used to specify different vector file formats. Each enum represents a file type and holds related information consisting of a tag and an extension.

Link copied to clipboard
@Serializable
data class IconFileContents(val pkg: String = "", val iconName: String = "", val theme: String = "", val width: Float, val height: Float, val viewportWidth: Float = width, val viewportHeight: Float = height, val nodes: List<ImageVectorNode>, val receiverType: String? = null, val addToMaterial: Boolean = false, val noPreview: Boolean = false, val makeInternal: Boolean = false, val imports: Set<String> = defaultImports)

Represents the contents of an icon file, including its package, icon name, theme, dimensions, nodes, and other attributes.

Link copied to clipboard
@Serializable
sealed interface ImageVectorNode : MethodSizeAccountable
Link copied to clipboard
@Serializable(with = PathCommandSerializer::class)
enum PathCommand : Enum<PathCommand>
Link copied to clipboard
@Serializable(with = PathNodesSerializer::class)
sealed class PathNodes(values: List<String>, val isRelative: Boolean, val command: PathCommand, val minified: Boolean) : MethodSizeAccountable

PathNodes is a sealed class that contains multiple classes to represent different commands of an SVG/AVG path. These classes include: MoveTo, ArcTo, VerticalLineTo, HorizontalLineTo, LineTo, CurveTo, ReflectiveCurveTo, QuadTo and ReflectiveQuadTo.

Link copied to clipboard
class StrokeDashArray(value: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun StrokeDashArray.createDashedPathForRect(x: Float, y: Float, width: Int, height: Int, strokeWidth: Int, isMinified: Boolean): List<PathNodes>