Open danprince opened 1 year ago
How does this differ from background images?
On Sep 12, 2023, at 08:08, Dan Prince @.***> wrote:
Bullseyes are defined with a relative size, independent color & opacity properties, and rendered above the node body, but below the label.
How does this differ from background images?
This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.
Related: Deprecation of the pie chart properties.
See
If we're considering something like the flags in the figure, then we should reconsider the deprecation of the pie properties, since they're similar.
Similar to ghost properties esp. w.r.t. implementation: https://js.cytoscape.org/#style/ghost
This issue has been automatically marked as stale, because it has not had activity within the past 14 days. It will be closed if no further activity occurs within the next 7 days. If a feature request is important to you, please consider making a pull request. Thank you for your contributions.
Pinned
See also:
Ghost properties: https://js.cytoscape.org/#style/ghost
A bullseye may use a similar implementation with similar -- but unique -- properties. However, the bullseye would have new, bullseye-specific properties, like a property to control its size.
Description of new feature
What should the new feature do? For visual features, include an image/mockup of the expected output.
Allow styling the inside of a node shape (a bullseye, open to alternative naming) with a separate set of properties.
Bullseyes are defined with a relative size, independent color & opacity properties, and rendered above the node body, but below the label.
These could be controlled through a few new style properties.
bullseye-size
the relative size of the bullseye to the parent.bullseye-color
the background color for the bullseye.bullseye-opacity
the opacity of the bullseye.Additional considerations:
bullseye-size: 50px
is this an error or does the bullseye just get an absolute size. How would that work with irregular aspect ratios? Would the bullseye getwidth: 50px
andheight: 50px
behind the scenes, or would the bullseye scale so that the larger dimension was50px
and the smaller dimension was proportional to the node body?Motivation for new feature
Describe your use case for this new feature.
A colored bullseye gives one additional dimension for styling a node, which is particularly useful when trying to create visual significance in a map which already uses node background color for another purpose.
The new properties and the rendering layer for bullseyes makes it difficult to implement them as a Cytoscape extension. We can't register additional style properties to support them and we can't patch the renderer to draw them between the node and the label.
Part of trying to achieve Kumu parity, from https://github.com/cytoscape/cytoscape.js/discussions/3145. Here's a reference that includes bullseyes, alongside the other dimensions we use for visualising node data.
For reviewers
Reviewers should ensure that the following tasks are carried out for incorporated issues:
unstable
branch via pull request. The corresponding pull request is cross-referenced.