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

Fix graph visualization performance issues for nodes with long captions #1429

Merged
merged 1 commit into from
Jun 11, 2021

Conversation

jharris4
Copy link
Contributor

No description provided.

Copy link
Contributor

@OskarDamkjaer OskarDamkjaer left a comment

Choose a reason for hiding this comment

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

I trust Hanes offline review!

@jharris4 jharris4 merged commit bf122d6 into neo4j:master Jun 11, 2021
Copy link
Member

@oskarhane oskarhane left a comment

Choose a reason for hiding this comment

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

Looks good 🦅

Acting on comment is optional :)

const captionText = style.interpolate(template, node)
const nodeText = style.interpolate(template, node)
const captionText =
nodeText.length > 100 ? nodeText.substring(0, 100) : nodeText
Copy link
Member

Choose a reason for hiding this comment

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

Do you need the length check?

@OskarDamkjaer OskarDamkjaer changed the title truncate node captions to 100 chars in viz to fix crash Truncate node captions to 100 chars in viz to fix crash Jun 22, 2021
@jharris4 jharris4 changed the title Truncate node captions to 100 chars in viz to fix crash Fix graph visualization performance issues for nodes with long captions Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants