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

fix(fabric.Image): ISSUE-6397 modify crossOrigin behaviour for setSerc #6414

Merged
merged 2 commits into from
Jun 27, 2020

Conversation

asturur
Copy link
Member

@asturur asturur commented Jun 27, 2020

Image.crossOrigin does not make sense.
crossOrigin is a property of the image element, and is needed to load and reload from object the image.
The developer should not be able to change it at will.

changes:

  • add getCrossOriginMethod to read only the actual value
    Breaking:
  • removing setCrossOrigin method
  • avoid setSrc to change element crossOrigin after load.

close #6397

@asturur
Copy link
Member Author

asturur commented Jun 27, 2020

this introduce a breaking change, so i cannot backport it. The Pr is easily cherry-pickable

@asturur asturur merged commit b53f87f into master Jun 27, 2020
@asturur asturur mentioned this pull request Jul 4, 2020
shanicerae pushed a commit to shanicerae/fabric.js that referenced this pull request Jan 16, 2021
@asturur asturur deleted the setSrc-crossorigin branch January 16, 2021 23:02
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.

issue with setSrc for crossorigin images
1 participant