mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 12:59:46 +02:00
Some theming/styling fixes
This commit is contained in:
@@ -1826,6 +1826,7 @@ const config = {
|
|||||||
padding: 10,
|
padding: 10,
|
||||||
maxNodeWidth: 200,
|
maxNodeWidth: 200,
|
||||||
},
|
},
|
||||||
|
fontSize: 16,
|
||||||
};
|
};
|
||||||
|
|
||||||
config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
|
config.class.arrowMarkerAbsolute = config.arrowMarkerAbsolute;
|
||||||
|
@@ -89,7 +89,7 @@ function rightToLeft(mindmap) {
|
|||||||
* @param conf
|
* @param conf
|
||||||
*/
|
*/
|
||||||
function layout(mindmap, dir, conf) {
|
function layout(mindmap, dir, conf) {
|
||||||
const bb = new BoundingBox(60, 60);
|
const bb = new BoundingBox(80, 80);
|
||||||
|
|
||||||
const layout = new Layout(bb);
|
const layout = new Layout(bb);
|
||||||
switch (dir) {
|
switch (dir) {
|
||||||
|
@@ -4,7 +4,7 @@ const genSections = (options) => {
|
|||||||
let sections = '';
|
let sections = '';
|
||||||
|
|
||||||
for (let i = 0; i < 8; i++) {
|
for (let i = 0; i < 8; i++) {
|
||||||
options['lineColor' + i] = options['lineColor' + i] || options['gitBranchLabel' + i];
|
options['lineColor' + i] = options['lineColor' + i] || options['gitInv' + i];
|
||||||
if (isDark(options['lineColor' + i])) {
|
if (isDark(options['lineColor' + i])) {
|
||||||
options['lineColor' + i] = lighten(options['lineColor' + i], 20);
|
options['lineColor' + i] = lighten(options['lineColor' + i], 20);
|
||||||
} else {
|
} else {
|
||||||
@@ -20,10 +20,12 @@ const genSections = (options) => {
|
|||||||
}
|
}
|
||||||
.section-${i - 1} text {
|
.section-${i - 1} text {
|
||||||
fill: ${options['gitBranchLabel' + i]};
|
fill: ${options['gitBranchLabel' + i]};
|
||||||
|
// fill: ${options['gitInv' + i]};
|
||||||
}
|
}
|
||||||
.node-icon-${i - 1} {
|
.node-icon-${i - 1} {
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
color: ${options['gitBranchLabel' + i]};
|
color: ${options['gitBranchLabel' + i]};
|
||||||
|
// color: ${options['gitInv' + i]};
|
||||||
}
|
}
|
||||||
.section-edge-${i - 1}{
|
.section-edge-${i - 1}{
|
||||||
stroke: ${options['git' + i]};
|
stroke: ${options['git' + i]};
|
||||||
|
@@ -134,7 +134,7 @@ const initThrowsErrors = function () {
|
|||||||
element
|
element
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
log.warn('Catching Error (bootstrap)');
|
log.warn('Catching Error (bootstrap)', error);
|
||||||
throw { error, message: error.str };
|
throw { error, message: error.str };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user