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

[Type] Mark LGraphGroup.color as optional #545

Merged
merged 2 commits into from
Feb 18, 2025
Merged

Conversation

huchenlei
Copy link
Member

The LGraphGroup.color can be deleted here. Marking it as optional.

const fApplyColor = function (node: LGraphNode) {
if (color) {
if (node instanceof LGraphGroup) {
node.color = color.groupcolor
} else {
node.color = color.color
node.bgcolor = color.bgcolor
}
} else {
delete node.color
delete node.bgcolor
}
}

@huchenlei huchenlei merged commit 6703a1f into master Feb 18, 2025
4 checks passed
@huchenlei huchenlei deleted the group_color_optional branch February 18, 2025 21:51
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.

1 participant