Skip to content

Fix #4239: Support more types in Extract Element node#4244

Open
Sanketjadhav31 wants to merge 1 commit into
GraphiteEditor:masterfrom
Sanketjadhav31:fix-extract-element-node-types
Open

Fix #4239: Support more types in Extract Element node#4244
Sanketjadhav31 wants to merge 1 commit into
GraphiteEditor:masterfrom
Sanketjadhav31:fix-extract-element-node-types

Conversation

@Sanketjadhav31

Copy link
Copy Markdown

Fixes #4239

The Extract Element node was missing support for a few list types that are already used elsewhere in the attribute system.

This adds support for:

  • List<bool>
  • List<DAffine2>
  • List<BlendMode>
  • List<GradientType>
  • List<GradientSpreadMethod>

These types already have existing support through attribute readers/writers and related node infrastructure, but were not included in the Extract Element node's implementation list.

I verified that the added types satisfy the required trait bounds and that cargo check --package graphic-nodes completes successfully after the change.

This is a small registration-only change and does not modify the node's runtime behavior.

Fixes GraphiteEditor#4239

Added support for the following List types in the Extract Element node:
- List<bool>
- List<DAffine2>
- List<BlendMode>
- List<GradientType>
- List<GradientSpreadMethod>

These types are already well-supported throughout the codebase with existing
conversion nodes, monitor nodes, and attribute read/write functions. This
change simply exposes them in the Extract Element node's implementations
list, allowing users to extract individual elements from lists of these types.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the extract_element function in node-graph/nodes/graphic/src/graphic.rs to support extracting additional list types, specifically adding support for List<bool>, List<DAffine2>, List<BlendMode>, List<GradientType>, and List<GradientSpreadMethod>. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@Sanketjadhav31 Sanketjadhav31 marked this pull request as ready for review June 16, 2026 18:20

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

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.

Support more types in the «Extract Element» node

1 participant