Skip to content

feature/COMPASS-9974 Allows nodes to be excluded during export#159

Closed
mabaasit wants to merge 2 commits intomainfrom
feature/COMPASS-9974-highlight-active-elements
Closed

feature/COMPASS-9974 Allows nodes to be excluded during export#159
mabaasit wants to merge 2 commits intomainfrom
feature/COMPASS-9974-highlight-active-elements

Conversation

@mabaasit
Copy link
Copy Markdown
Contributor

External Links

Description

When exporting a diagram with active (fields, edge), we want to exclude the highlighted items.

  1. For fields, currently we are highlighting an active field using css pseudo selector. This makes it hard to identify during export. So, I converted that to an html element with styles applied to it along with data-active-type prop. This will be used to filter this node during export.
  2. For edges, we are rendering an svg path with fill color to highlight an active edge. In order to keep things simple and not modify it during export, I am rendering two paths (which are same), but different in colors. Active is rendered on top of inactive. During export, we find this active node by data-active-type and exclude it.
  3. [TODO] For markers: I am thinking of how to efficiently handle those.

Notes for Reviewers

📸 Screenshots/Screencasts

Before

After

@mabaasit mabaasit closed this Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant