File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,10 @@ _html2canvas.Renderer.SVG = function( options ) {
135
135
136
136
el = doc . createElementNS ( svgNS , "image" ) ;
137
137
el . setAttributeNS ( xlinkNS , "xlink:href" , renderItem [ 'arguments' ] [ 0 ] . src ) ;
138
- el . setAttribute ( "width" , renderItem [ 'arguments' ] [ 0 ] . width ) ;
139
- el . setAttribute ( "height" , renderItem [ 'arguments' ] [ 0 ] . height ) ;
140
- el . setAttribute ( "x" , renderItem [ 'arguments' ] [ 5 ] - renderItem [ 'arguments' ] [ 1 ] ) ;
141
- el . setAttribute ( "y" , renderItem [ 'arguments' ] [ 6 ] - renderItem [ 'arguments' ] [ 2 ] ) ;
138
+ el . setAttribute ( "width" , renderItem [ 'arguments' ] [ 7 ] ) ;
139
+ el . setAttribute ( "height" , renderItem [ 'arguments' ] [ 8 ] ) ;
140
+ el . setAttribute ( "x" , renderItem [ 'arguments' ] [ 5 ] ) ;
141
+ el . setAttribute ( "y" , renderItem [ 'arguments' ] [ 6 ] ) ;
142
142
el . setAttribute ( "clip-path" , "url(#clipId" + clipId + ")" ) ;
143
143
// el.setAttribute("xlink:href", );
144
144
You can’t perform that action at this time.
0 commit comments