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

Use textures and sprites for node bars #257

Merged
merged 7 commits into from
Oct 23, 2023
Merged

Use textures and sprites for node bars #257

merged 7 commits into from
Oct 23, 2023

Conversation

pleek91
Copy link
Collaborator

@pleek91 pleek91 commented Oct 22, 2023

Description

Replacing all the node bar graphics with sprites and textures which are much more performant.

@pleek91 pleek91 requested a review from a team as a code owner October 22, 2023 21:47
@netlify
Copy link

netlify bot commented Oct 22, 2023

Deploy Preview for prefect-graphs ready!

Name Link
🔨 Latest commit 6b09ec5
🔍 Latest deploy log https://app.netlify.com/sites/prefect-graphs/deploys/6535d68ee7957200088ed785
😎 Deploy Preview https://deploy-preview-257--prefect-graphs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Generic bar factory with the ability to disable the "caps"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nodeBarFactory is a node specific implementation of barFactory

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Creates a single pixel texture

src/factories/cap.ts Show resolved Hide resolved
src/factories/nodeBar.ts Show resolved Hide resolved
src/factories/rectangle.ts Show resolved Hide resolved
@pleek91 pleek91 merged commit bccad61 into main Oct 23, 2023
@pleek91 pleek91 deleted the bar-sprites branch October 23, 2023 14:54
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