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

d3.image should take an *init* object. #5

Closed
mbostock opened this issue Jan 28, 2018 · 0 comments
Closed

d3.image should take an *init* object. #5

mbostock opened this issue Jan 28, 2018 · 0 comments

Comments

@mbostock
Copy link
Member

mbostock commented Jan 28, 2018

Rather than an anonymous boolean, it should be an object that sets properties on the image before setting the src. This way we can set the crossOrigin attribute, and whatever else the browser supports.

d3.image(url, {crossOrigin: "anonymous"})
@mbostock mbostock changed the title d3.img should take an *init* object. d3.image should take an *init* object. Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant