File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -152,16 +152,17 @@ export class SVG extends SVGBase {
152
152
const nativeWidth = box ? box . width ( ) : width ;
153
153
const nativeHeight = box ? box . height ( ) : height ;
154
154
155
- const nativeAspectRatio = nativeWidth / nativeHeight ;
156
- const boundedAspectRatio = width / height ;
155
+ // const nativeAspectRatio = nativeWidth / nativeHeight;
156
+ // const boundedAspectRatio = width / height;
157
157
158
- let paintedWidth = width ;
159
- let paintedHeight = height ;
160
- if ( nativeAspectRatio >= boundedAspectRatio ) {
161
- paintedHeight = paintedWidth / nativeAspectRatio ;
162
- } else {
163
- paintedWidth = paintedHeight * nativeAspectRatio ;
164
- }
158
+ const paintedWidth = width ;
159
+ const paintedHeight = height ;
160
+ // does not seem like we need this. Handled by options?
161
+ // if (nativeAspectRatio >= boundedAspectRatio) {
162
+ // paintedHeight = paintedWidth / nativeAspectRatio;
163
+ // } else {
164
+ // paintedWidth = paintedHeight * nativeAspectRatio;
165
+ // }
165
166
const xOrigin = ( width - paintedWidth ) / 2.0 ;
166
167
const yOrigin = ( height - paintedHeight ) / 2.0 ;
167
168
options = options . preserveAspectRatio ( this . _preserveAspectRatio ) ;
You can’t perform that action at this time.
0 commit comments