-
-
Notifications
You must be signed in to change notification settings - Fork 107
update markers example with color changing on selection #1005
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
4 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the markers example to demonstrate color changing functionality when edges are selected. The changes add a custom edge component that dynamically changes its color and marker when selected.
Key changes:
- Adds a custom edge component with selection-based styling
- Creates a new selected marker definition in SVG
- Includes proper null checking for DOM container
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
index.tsx | Adds null check for DOM container before creating React root |
index.css | Adds styling for custom edge labels (unused in current implementation) |
CustomEdge.tsx | New custom edge component that changes color and marker when selected |
App.tsx | Integrates custom edge type, adds new node/edge, and defines selected marker SVG |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Idea from meeting
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
good stuff! thanks :) |
Related to xyflow/xyflow#5441