Skip to content

[EPIC] [SDK] Support pathData (addPath/addPathNodes) in icon generation #783

@egorikftp

Description

@egorikftp

Currently, we generate icon path in following format:

path(fill = SolidColor(Color.White)) {
    moveTo(30f, 60f)
    curveTo(46.569f, 60f, 60f, 46.569f, 60f, 30f)
    close()
}

We can provide new format for path. Instead function call we can define path as string

addPath(
    fill = SolidColor(Color(0xFFFFFFFF)),
    pathData = addPathNodes("M 30 60 C 46.569 60 60 46.569 60 30 Z"),
)

discussion: #648

Note: This will be less optimal because the icon path will be parsed before rendering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions