Repository navigation
Node outlines #3156
Description
Activity
The screenshots don't seem to work in the OP anymore.
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.
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.
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.
- addedpinnedA long-lived issue, such as a discussionA long-lived issue, such as a discussionand removed
on Oct 18, 2023 Pinned
Assigned to the 3.28.0 milestone.
- added a commit that references this issue
on Jun 18, 2025
Description of new feature
Following on from a few of the features mentioned in #3145 (comment), this issue proposes the addition of outlines as a new, optional node style, similar to but distinct from borders.
Node outlines would be defined by and support the same properties as borders (
outline-color,outline-opacity,outline-widthandoutline-style), with an additionaloutline-offsetproperty for offsetting the outline.Outlines wouldn't affect the calculated node size, although bounds calculations would take outlines into account so that larger outlines don't get clipped at lower zoom levels without having to rely on the
bounds-expansionproperty.Here are a few mock-ups showing what outlines would look like:
2px outline with no offset:
4px outline with 2px offset:
4px dashed outline with 4px offset:
Motivation for new feature
Outlines provide an additional visual indicator that can be used, amongst other things, to signal user interaction, particularly in cases where border style and/or underlays are already being used. Additionally, outlines provide a way to convey interaction in a way that doesn't obscure the node, like overlays do.
As a relatively new user of the library and first-time proposer, happy to provide additional detail if needed!