Skip to content
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

Add picking on other edge types #98

Merged
merged 1 commit into from
Aug 17, 2023
Merged

Add picking on other edge types #98

merged 1 commit into from
Aug 17, 2023

Conversation

mj3cheun
Copy link
Contributor

No description provided.

@mj3cheun mj3cheun marked this pull request as draft August 16, 2023 17:32
@mj3cheun mj3cheun marked this pull request as ready for review August 17, 2023 20:05
@@ -14,7 +15,8 @@ import {
} from '../../../renderer/Renderable';
import {Edges} from '../Edges';
import {GraphPoints} from '../../../data/GraphPoints';
import {PickingManager} from '../../../UX/picking/PickingManager';
import {PickingColors, PickingEvent, PickingManager} from '../../../UX/picking/PickingManager';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

future: we should add some aliases so that we dont have these relative paths everywhere

@@ -57,7 +63,7 @@ void main() {
vec2 normal = vec2(-direction.y, direction.x);

// calculate the pixel offset
fLineWidth = uLineWidth * uPixelRatio;
fLineWidth = (uPicking ? uLineWidth * 8. : uLineWidth) * uPixelRatio;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the multiplication by 8?

@mj3cheun mj3cheun merged commit 64fda5f into main Aug 17, 2023
8 checks passed
@mj3cheun mj3cheun deleted the finish-edge-picking branch August 17, 2023 20:36
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.

2 participants