mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 17:29:54 +02:00
Reverted to using configObject in place of conf
Co-authored-by: Shahir Ahmed <ahmeds@dickinson.edu>
This commit is contained in:
@@ -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') {
|
||||||
|
Reference in New Issue
Block a user