change svgElem to SVG in configureSvgSize

This commit is contained in:
Reda Al Sulais
2023-08-03 15:55:05 +03:00
parent bb6664a2c6
commit a4f778f4de

View File

@@ -1,4 +1,5 @@
import { log } from './logger.js'; import { log } from './logger.js';
import { SVG } from './diagram-api/types.js';
/** /**
* Applies d3 attributes * Applies d3 attributes
@@ -35,7 +36,7 @@ export const calculateSvgSizeAttrs = function (height, width, useMaxWidth) {
/** /**
* Applies attributes from `calculateSvgSizeAttrs` * 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} height The height of the SVG
* @param {number} width The width 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% * @param {boolean} useMaxWidth Whether or not to use max-width and set width to 100%