I am in the process of incorporating an SVG into my Angular 8 project using mermaid. The visualisation is rendering correctly, but I'm encountering an issue with the size being too small. Despite my CSS attempts to override the max-width property, I have been unsuccessful. To address this problem, I am exploring the option of adjusting the width through TypeScript.
Within the onInit() function in my TypeScript file, I have added the following code snippet:
mermaid.render("graphDiv", graphDefinition, (svgCode, bindFunctions) => {
element.innerHTML = svgCode;
bindFunctions(element);
element.setAttribute("style", "max-width: 1000px !important")
});
Regrettably, modifying the max-width property in this manner has not yielded the desired outcome, as the preset value remains unchanged.
Previous efforts to adjust "graphDiv" within the CSS were met with limited success. Is it feasible to override the predetermined width using TypeScript?