-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Description of new feature
What should the new feature do? For visual features, include an image/mockup of the expected output.
Allow users to specify float numbers for the z-index style property.
Motivation for new feature
Describe your use case for this new feature.
Currently, Cytoscape.js allows only integers for the z-index style property. However, in Cytoscape Desktop, there are instances where users would like to specify values like 1.0 or 1.2 including negative numbers like -1.0 or -10. This change would allow us to avoid another transformation layer when importing networks from Cytoscape Web from Cytoscape Desktop and vice versa.
The downside I can see is that change would make z-index behave slightly different than the css z-index property. Integers will still be supported, but users may find it foreign to allow a z-index be a float number.
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
unstablebranch via pull request. The corresponding pull request is cross-referenced.