mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-02 11:54:15 +01:00
MC-1765: Added specific end-state class
This commit is contained in:
@@ -103,12 +103,19 @@ g.stateGroup line {
|
||||
.node circle.state-end {
|
||||
fill: ${options.stateBkg || options.mainBkg};
|
||||
stroke: ${options.background};
|
||||
stroke-width: 1.5
|
||||
stroke-width: 1.5;
|
||||
}
|
||||
|
||||
[data-look="neo"].node circle.state-end {
|
||||
filter: none;
|
||||
stroke:${options.background};
|
||||
fill: ${options.lineColor};
|
||||
}
|
||||
|
||||
.end-state-inner {
|
||||
fill: ${options.compositeBackground || options.background};
|
||||
stroke: ${options.background};
|
||||
stroke-width: 1.5
|
||||
stroke-width: 1.5;
|
||||
}
|
||||
|
||||
.node rect {
|
||||
|
||||
@@ -81,27 +81,23 @@ const getStyles = (
|
||||
}
|
||||
|
||||
|
||||
[data-look="neo"].node rect, [data-look="neo"].node circle, [data-look="neo"].node polygon , [data-look="neo"].node path {
|
||||
[data-look="neo"].node rect, [data-look="neo"].node polygon , [data-look="neo"].node path {
|
||||
stroke: ${options.useGradient ? 'url(' + svgId + '-gradient)' : options.nodeBorder};
|
||||
filter: ${options.dropShadow};
|
||||
}
|
||||
|
||||
[data-look="neo"].node circle{
|
||||
stroke: $(options.nodeBorder);
|
||||
stroke: ${options.useGradient ? 'url(' + svgId + '-gradient)' : options.nodeBorder};
|
||||
|
||||
filter: ${options.dropShadow};
|
||||
}
|
||||
|
||||
[data-look="neo"].node circle .state-start{
|
||||
fill: #000000;
|
||||
|
||||
}
|
||||
|
||||
[data-look="neo"].statediagram-cluster rect {
|
||||
fill: ${options.compositeTitleBackground};
|
||||
stroke: ${options.useGradient ? 'url(' + svgId + '-gradient)' : options.nodeBorder};
|
||||
//stroke: none;
|
||||
stroke-width: 1px;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,11 +28,11 @@ class Theme {
|
||||
this.fontSize = '10px';
|
||||
|
||||
// Neo-specific
|
||||
this.nodeBorder = 'none';
|
||||
this.stateBorder = 'none';
|
||||
this.nodeBorder = '#000000';
|
||||
this.stateBorder = '#000000';
|
||||
this.useGradient = true;
|
||||
this.gradientStart = '#eb0042';
|
||||
this.gradientStop = '#0042eb';
|
||||
this.gradientStart = '#0042eb';
|
||||
this.gradientStop = '#eb0042';
|
||||
this.dropShadow = 'drop-shadow( 1px 2px 2px rgba(185,185,185,1))';
|
||||
this.tertiaryColor = '#ffffff';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user