-
Notifications
You must be signed in to change notification settings - Fork 38
#497 Add dynamic glow effect for selected #1162
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
Open
Copilot
wants to merge
5
commits into
main
Choose a base branch
from
copilot/fix-d85a9c45-7be3-4bd3-9c6f-433d6f7127ee
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Co-authored-by: thekingofcity <[email protected]>
Copilot
AI
changed the title
[WIP] 我想给所有选中(selected)的元素(车站、杂项节点、线段样式)添加一个动态的外发光效果,最好用上svg的动画功能,有没有不修改每个元素实现的方法?
Add dynamic glow effect for selected elements using SVG animations
Sep 13, 2025
Copilot finished work on behalf of
thekingofcity
September 13, 2025 02:21
thekingofcity
requested changes
Sep 13, 2025
…ply to pre/post components Co-authored-by: thekingofcity <[email protected]>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Add dynamic glow effect for selected elements using SVG animations
Add dynamic fluorescent yellow glow effect for selected elements using SVG animations
Sep 13, 2025
Copilot finished work on behalf of
thekingofcity
September 13, 2025 03:06
langonginc
requested changes
Sep 13, 2025
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.
- The horizontal and vertical lines will be disappeared when selected.
- Item in black will not be added with yellow effect.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements a dynamic fluorescent yellow glow effect for all selected elements (stations, misc nodes, and line styles) using SVG filter animations, addressing the user request for visual feedback without modifying individual element components.
Problem
Users needed a visual indicator to clearly identify selected elements on the canvas. The requirement was to implement a dynamic glow effect (外发光效果) using SVG animation functionality while avoiding modifications to each individual element implementation.
Solution
Added an animated SVG filter that applies a fluorescent yellow pulsating glow effect to selected elements:
Technical Implementation
#selected-glowfilter with animated Gaussian blurKey Changes
svg-wrapper.tsx): Added animated fluorescent yellow glow filter with fast 0.5-second pulsating cyclesvg-layer.tsx): Wrap all selected element components (pre, main, post) with glow filter groupsvg-canvas-graph.tsx): Pass selection state to SVG layerThe filter uses
feColorMatrixto create fluorescent yellow color andfeGaussianBlurwith<animate>to create a smooth fast pulsating effect from 1px to 3px blur radius, providing clear visual feedback with crisp edges for element selection.Visual Result
The screenshot shows a station with the bright fluorescent yellow animated glow effect applied, demonstrating the smooth visual feedback for selected elements.
Benefits
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.