Skip to content

Conversation

@xerxovksi
Copy link
Collaborator

@xerxovksi xerxovksi commented Dec 11, 2024

Description

  • Reuse the same DOM image element and canvas element for gradient preview and image. Re-creating these elements everytime, for a different gradient configuration could lead to failures in generating the gradient preview/image.

  • Short-circuit invalid code paths that led to console errors.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@xerxovksi xerxovksi requested a review from vamshich13 December 11, 2024 12:14
Copy link
Collaborator

@vamshich13 vamshich13 left a comment

Choose a reason for hiding this comment

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

LGTM

@xerxovksi xerxovksi merged commit 823a9e9 into main Dec 17, 2024
3 of 4 checks passed
@xerxovksi xerxovksi deleted the gradients-coi-fix branch December 17, 2024 04:34
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.

3 participants