chore: Biome auto fixes

This commit is contained in:
Sidharth Vinod
2024-06-21 11:54:19 +05:30
parent 2c80d806cc
commit 08dfdfed82
47 changed files with 355 additions and 393 deletions

View File

@@ -13,7 +13,7 @@ export const draw = (text, id, version) => {
try {
const conf = getConfig();
log.debug('Rendering example diagram\n' + text, 'Conf: ');
const THEME_COLOR_LIMIT = getConfig().themeVariables.THEME_COLOR_LIMIT;
const themeColorLimit = getConfig().themeVariables.THEME_COLOR_LIMIT;
const securityLevel = getConfig().securityLevel;
// Handle root and Document for when rendering in sandbox mode
let sandboxElement;
@@ -30,7 +30,7 @@ export const draw = (text, id, version) => {
const g = svg.append('g');
let i;
for (i = 0; i < THEME_COLOR_LIMIT; i++) {
for (i = 0; i < themeColorLimit; i++) {
const section = g.append('g').attr('class', 'section-' + i);
section
.append('rect')