mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-13 02:59:36 +02:00
Removed some hard coding form review
This commit is contained in:
@@ -333,7 +333,7 @@ const setupDoc = (g, parentParsedItem, doc, diagramStates, diagramDb, altFlag) =
|
|||||||
counter: graphItemCount,
|
counter: graphItemCount,
|
||||||
}),
|
}),
|
||||||
arrowhead: 'normal',
|
arrowhead: 'normal',
|
||||||
arrowTypeEnd: 'arrow_barb',
|
arrowTypeEnd: 'arrow_neo',
|
||||||
style: G_EDGE_STYLE,
|
style: G_EDGE_STYLE,
|
||||||
labelStyle: '',
|
labelStyle: '',
|
||||||
label: common.sanitizeText(item.description, getConfig()),
|
label: common.sanitizeText(item.description, getConfig()),
|
||||||
|
@@ -127,16 +127,16 @@ g.stateGroup line {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.statediagram-cluster rect.outer {
|
.statediagram-cluster rect.outer {
|
||||||
rx: 2px;
|
rx: ${options.radius}px;
|
||||||
ry: 2px;
|
ry: ${options.radius}px;
|
||||||
}
|
}
|
||||||
.statediagram-state .divider {
|
.statediagram-state .divider {
|
||||||
stroke: ${options.stateBorder || options.nodeBorder};
|
stroke: ${options.stateBorder || options.nodeBorder};
|
||||||
}
|
}
|
||||||
|
|
||||||
.statediagram-state .title-state {
|
.statediagram-state .title-state {
|
||||||
rx: 5px;
|
rx: ${options.radius}px;
|
||||||
ry: 5px;
|
ry: ${options.radius}px;
|
||||||
}
|
}
|
||||||
.statediagram-cluster.statediagram-cluster .inner {
|
.statediagram-cluster.statediagram-cluster .inner {
|
||||||
fill: ${options.compositeBackground || options.background};
|
fill: ${options.compositeBackground || options.background};
|
||||||
|
@@ -25,7 +25,7 @@ class Theme {
|
|||||||
// dark
|
// dark
|
||||||
|
|
||||||
this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif';
|
this.fontFamily = '"trebuchet ms", verdana, arial, sans-serif';
|
||||||
this.fontSize = '16px';
|
this.fontSize = '10px';
|
||||||
}
|
}
|
||||||
updateColors() {
|
updateColors() {
|
||||||
// The || is to make sure that if the variable has been defined by a user override that value is to be used
|
// The || is to make sure that if the variable has been defined by a user override that value is to be used
|
||||||
|
Reference in New Issue
Block a user