Reverted to using configObject in place of conf

Co-authored-by: Shahir Ahmed <ahmeds@dickinson.edu>
This commit is contained in:
pranavm2109
2025-02-18 15:36:51 -05:00
parent eb7289a65a
commit d6376ca1ff

View File

@@ -48,11 +48,12 @@ function drawActorLegend(diagram) {
const conf = getConfig().journey; const conf = getConfig().journey;
const LEFT_MARGIN = conf.leftMargin; const LEFT_MARGIN = conf.leftMargin;
export const draw = function (text, id, version, diagObj) { export const draw = function (text, id, version, diagObj) {
const titleColor = conf.titleColor; const configObject = getConfig();
const titleFontSize = conf.titleFontSize; const titleColor = configObject.journey.titleColor;
const titleFontFamily = conf.titleFontFamily; const titleFontSize = configObject.journey.titleFontSize;
const titleFontFamily = configObject.journey.titleFontFamily;
const securityLevel = getConfig().securityLevel; const securityLevel = configObject.securityLevel;
// Handle root and Document for when rendering in sandbox mode // Handle root and Document for when rendering in sandbox mode
let sandboxElement; let sandboxElement;
if (securityLevel === 'sandbox') { if (securityLevel === 'sandbox') {