Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Simplify the styling API #9

@vojtatom

Description

@vojtatom

After transitioning from BananaGL to MetacityGL, the styling API needs simplification.

The original BananaGL:

gl.style.withAttributeRangeExt("height", 20, 50).useColor([
    0x0088FF,
    0xFF0088
]),

The same style in MetacityGL:

new Utils.Styles.Style().add(
    new Utils.Styles.StyleAttributeRangeExt({
        attribute: 'height',
        min: 20,
        max: 50
    })
).useColor([0x04d3ff, 0xFF00ea])

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions