mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-03 22:29:38 +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,
|
||||
shape: 'erBox',
|
||||
look: getConfig().look || 'default',
|
||||
cssClasses: [],
|
||||
cssClasses: ['default'],
|
||||
cssStyles: [],
|
||||
});
|
||||
log.info('Added new entity :', name);
|
||||
|
@@ -36,8 +36,8 @@ const getStyles = (options) =>
|
||||
.node rect,
|
||||
.node circle,
|
||||
.node ellipse,
|
||||
.node polygon,
|
||||
.node path {
|
||||
.node polygon
|
||||
{
|
||||
fill: ${options.mainBkg};
|
||||
stroke: ${options.nodeBorder};
|
||||
stroke-width: 1px;
|
||||
|
Reference in New Issue
Block a user