mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-12 10:39:44 +02:00
Add default class to nodes and fix styles
This commit is contained in:
@@ -45,7 +45,7 @@ const addEntity = function (name: string, alias = ''): EntityNode {
|
|||||||
alias,
|
alias,
|
||||||
shape: 'erBox',
|
shape: 'erBox',
|
||||||
look: getConfig().look || 'default',
|
look: getConfig().look || 'default',
|
||||||
cssClasses: [],
|
cssClasses: ['default'],
|
||||||
cssStyles: [],
|
cssStyles: [],
|
||||||
});
|
});
|
||||||
log.info('Added new entity :', name);
|
log.info('Added new entity :', name);
|
||||||
|
@@ -36,8 +36,8 @@ const getStyles = (options) =>
|
|||||||
.node rect,
|
.node rect,
|
||||||
.node circle,
|
.node circle,
|
||||||
.node ellipse,
|
.node ellipse,
|
||||||
.node polygon,
|
.node polygon
|
||||||
.node path {
|
{
|
||||||
fill: ${options.mainBkg};
|
fill: ${options.mainBkg};
|
||||||
stroke: ${options.nodeBorder};
|
stroke: ${options.nodeBorder};
|
||||||
stroke-width: 1px;
|
stroke-width: 1px;
|
||||||
|
Reference in New Issue
Block a user