Skip to content

Fix arrow render order so critical arrows appear on top#9

Open
alexrcore wants to merge 1 commit intoucfx:mainfrom
alexrcore:fix/critical-arrows
Open

Fix arrow render order so critical arrows appear on top#9
alexrcore wants to merge 1 commit intoucfx:mainfrom
alexrcore:fix/critical-arrows

Conversation

@alexrcore
Copy link

What was wrong

Critical arrows in the PERT chart could be hidden behind non-critical arrows because SVG renders elements in DOM order. This made it hard to visually track critical paths.

What this fixes

Reorders links data so that non-critical arrows are rendered first, then critical arrows are rendered last. This ensures that critical arrows always appear on top in the SVG.

Screenshots

Before:
before

After:
after

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