Skip to content

Commit

Permalink
change svgElem to SVG in configureSvgSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Aug 3, 2023
1 parent bb6664a commit a4f778f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mermaid/src/setupGraphViewbox.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { log } from './logger.js';
import { SVG } from './diagram-api/types.js';

/**
* Applies d3 attributes
Expand Down Expand Up @@ -35,7 +36,7 @@ export const calculateSvgSizeAttrs = function (height, width, useMaxWidth) {
/**
* Applies attributes from `calculateSvgSizeAttrs`
*
* @param {SVGSVGElement} svgElem The SVG Element to configure
* @param {SVG} svgElem The SVG Element to configure
* @param {number} height The height of the SVG
* @param {number} width The width of the SVG
* @param {boolean} useMaxWidth Whether or not to use max-width and set width to 100%
Expand Down

0 comments on commit a4f778f

Please sign in to comment.