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

Curvedpath fix #101

Merged
merged 4 commits into from
Aug 22, 2023
Merged

Curvedpath fix #101

merged 4 commits into from
Aug 22, 2023

Conversation

mj3cheun
Copy link
Contributor

No description provided.

@@ -26,15 +26,18 @@ export interface CurvedPathEdgeData {
control: number | number[];
sourceColor?: GraferInputColor,
targetColor?: GraferInputColor,
pickingColor?: number | [number, number, number, number];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I presume vectors are used quite a bit, so in that case it may be useful to extract this into a type at least the array. i.e type vec4 = { r: number, g: number .... }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

vectors are used quite a bit, this vec4/uvec4 is present in a few places in the code, i think if we want to consolidate the types it might be better to do it in a seperate PR so we dont have 4 additional unrelated files in this PR. what do you think?

Copy link
Collaborator

Choose a reason for hiding this comment

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

i'm fine with that, this was just a thought but yes if we have this throughout the code base we should have a clean up PR

src/graph/edges/path/CurvedPath.ts Show resolved Hide resolved
src/graph/edges/path/CurvedPath.ts Show resolved Hide resolved
src/graph/edges/path/StraightPath.ts Show resolved Hide resolved
src/graph/edges/path/CurvedPath.ts Show resolved Hide resolved
@mj3cheun mj3cheun merged commit 2a58eb9 into main Aug 22, 2023
8 checks passed
@mj3cheun mj3cheun deleted the curvedpath-fix branch August 22, 2023 20:58
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