Skip to content

Use Style objects instead of strings? #9

@davidfokkema

Description

@davidfokkema

Currently, if you draw anything, you can pass in style="red", for example. If you happen to build a plot widget with component classes you get a Style object which you need to change to a string so that Canvas can parse that back into a Style object. Also, this parsing happened on each render. So a style cache was implemented so that we didn't need to do that, but now we have to check the cache. Wouldn't it be much easier (and faster) to just not accept strings? But only Style objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions