VectorAsset

class VectorAsset
kotlin.Any
   ↳ androidx.ui.graphics.vector.VectorAsset

Vector graphics object that is generated as a result of VectorAssetBuilder] It can be composed and rendered by passing it as an argument to DrawVector

Summary

Properties

Px

Intrinsic height of the vector asset in pixels

Px

Intrinsic width of the vector asset in pixels

String

Name of the Vector asset

VectorGroup

Root group of the vector asset that contains all the child groups and paths

Float

Used to define the height of the viewport space.

Float

Used to define the width of the viewport space.

Properties

defaultHeight

val defaultHeight: Px

Intrinsic height of the vector asset in pixels

defaultWidth

val defaultWidth: Px

Intrinsic width of the vector asset in pixels

name

val name: String

Name of the Vector asset

root

val root: VectorGroup

Root group of the vector asset that contains all the child groups and paths

viewportHeight

val viewportHeight: Float

Used to define the height of the viewport space. Viewport is basically the virtual canvas where the paths are drawn on.

viewportWidth

val viewportWidth: Float

Used to define the width of the viewport space. Viewport is basically the virtual canvas where the paths are drawn on.