Commit fdd8226
add attributes to image() as options (#267)
* add width and height to image() as options
* incorporated feedback
* Update src/fileAttachment.js
Co-authored-by: Mike Bostock <mbostock@gmail.com>
* using setAttribute instead of constructor
* added alt and title
* added style
* changing to pass through all props
* moving props to after crossOrigin assignment
Co-authored-by: Mike Bostock <mbostock@gmail.com>1 parent b9bbd5c commit fdd8226
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments