Skip to content

border-radius property for node shapes with rounded corners #3198

@EliotRagueneau

Description

@EliotRagueneau

Description of new feature

It would be really great if users could easily specify what is the border-radius of all the "rounded" node shapes.
Additionally, adding this property would enable effectively new shapes, such as the pill shape which is just a rounded rectangle with a corner radius of half the height

corner-radius

Motivation for new feature

In the reactome-cytoscape-style library we're developing, we need bigger border-radius than the ones provided by default .
At the moment we're using background-image svgs to do it, but that is extremely heavy for something that could just be a simple property of a shape, without impacting too much performances (I believe).

We would like to boost our performances by using native shape renderers instead of custom SVGs

For reviewers

Reviewers should ensure that the following tasks are carried out for incorporated issues:

  • Ensure that the reporter has adequately described their idea. If not, elicit more information about the use case. You should iteratively build a spec together.
  • Ensure that the issue is a good fit for the core library. Some things are best done in extensions (e.g. UI-related features that aren't style-related). Some things are best done by app authors themselves -- instead of in Cytoscape libraries.
  • The issue has been associated with a corresponding milestone.
  • The commits have been incorporated into the unstable branch via pull request. The corresponding pull request is cross-referenced.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pinnedA long-lived issue, such as a discussion

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions