Skip to content

feature/COMPASS-9629 expose onNodeClick and nodeDragThreshold component props #101

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

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

gribnoysup
Copy link
Contributor

External Links

Description

Some interaction with diagram in compass requires us to react to the node click event to the component, we're currently doing this by just ignoring typescript errors as the props are being passed through, but would like to remove the ts-expect-error statements from the code. Also when adding node click, we realised that the default nodeDragThreshold is too low, so clicks are not registering too often, so this is another prop that is getting exposed in this patch

Notes for Reviewers

N/A

📸 Screenshots/Screencasts

N/A

Before

N/A

After

N/A

@@ -181,7 +191,15 @@ export interface DiagramProps {
/**
* Whether to only render elements that are currently visible in the viewport.
* This can improve performance for large diagrams.
* @defaults true
* @default true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Drive-by, defaults is not really a jsdoc directive, default is, probably a typo

@gribnoysup gribnoysup merged commit b9dc9ee into main Jul 30, 2025
4 checks passed
@gribnoysup gribnoysup deleted the feature/COMPASS-9629-expose-extra-component-props branch July 30, 2025 09:21
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