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

feat: add decision tree demo #6139

Merged
merged 5 commits into from
Aug 7, 2024
Merged

feat: add decision tree demo #6139

merged 5 commits into from
Aug 7, 2024

Conversation

yvonneyx
Copy link
Contributor

@yvonneyx yvonneyx commented Aug 6, 2024

Snipaste_2024-08-06_16-45-55

packages/g6/__tests__/demos/case-decision-tree.ts Outdated Show resolved Hide resolved
packages/g6/__tests__/demos/case-decision-tree.ts Outdated Show resolved Hide resolved
packages/g6/__tests__/demos/case-decision-tree.ts Outdated Show resolved Hide resolved
packages/g6/__tests__/demos/case-decision-tree.ts Outdated Show resolved Hide resolved
if (collapsed) graph.expandElement(this.id);
else graph.collapseElement(this.id);
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

属于是我起了个不好的头,后续较好的优化方式可能是给 upsert 添加回调方法,例如 onCreate\onUpdate\onDestroy

@yvonneyx yvonneyx force-pushed the demo/decision-tree branch from f33e9ba to 59e99c1 Compare August 7, 2024 02:25
@Aarebecca Aarebecca merged commit 858a713 into v5 Aug 7, 2024
3 of 5 checks passed
@Aarebecca Aarebecca deleted the demo/decision-tree branch August 7, 2024 07:31
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