mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 04:04:28 +01:00
change svgElem to SVG in configureSvgSize
This commit is contained in:
@@ -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%
|
||||||
|
|||||||
Reference in New Issue
Block a user