@@ -53,7 +53,7 @@ function getDefaultSvgBoundsIfUndefined(text: string, src: string): Bounds | nul
|
|||||||
const viewBox = svg.viewBox.baseVal;
|
const viewBox = svg.viewBox.baseVal;
|
||||||
return {
|
return {
|
||||||
width: defaultSize,
|
width: defaultSize,
|
||||||
height: defaultSize * viewBox.width / viewBox.height,
|
height: defaultSize * viewBox.height / viewBox.width,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user