2020-07-17 15:57:02 +02:00
|
|
|
const getStyles = options =>
|
|
|
|
`g.classGroup text {
|
|
|
|
fill: ${options.nodeBorder};
|
2020-07-20 14:13:05 +02:00
|
|
|
fill: ${options.classText};
|
2020-07-17 15:57:02 +02:00
|
|
|
stroke: none;
|
2020-07-20 14:13:05 +02:00
|
|
|
font-family: ${options.fontFamily};
|
2020-07-17 15:57:02 +02:00
|
|
|
font-size: 10px;
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-weight: bolder;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
g.clickable {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
g.classGroup rect {
|
|
|
|
fill: ${options.nodeBkg};
|
|
|
|
stroke: ${options.nodeBorder};
|
|
|
|
}
|
|
|
|
|
|
|
|
g.classGroup line {
|
|
|
|
stroke: ${options.nodeBorder};
|
|
|
|
stroke-width: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.classLabel .box {
|
|
|
|
stroke: none;
|
|
|
|
stroke-width: 0;
|
|
|
|
fill: ${options.nodeBkg};
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.classLabel .label {
|
|
|
|
fill: ${options.nodeBorder};
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.relation {
|
2020-07-20 15:15:03 +02:00
|
|
|
stroke: ${options.lineColor};
|
2020-07-17 15:57:02 +02:00
|
|
|
stroke-width: 1;
|
|
|
|
fill: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashed-line{
|
|
|
|
stroke-dasharray: 3;
|
|
|
|
}
|
|
|
|
|
2020-07-18 09:57:55 +02:00
|
|
|
#compositionStart, #compositionEnd, #dependencyStart, #dependencyEnd, #extensionStart, #extensionEnd {
|
2020-07-20 15:15:03 +02:00
|
|
|
fill: ${options.lineColor};
|
|
|
|
stroke: ${options.lineColor};
|
2020-07-17 15:57:02 +02:00
|
|
|
stroke-width: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#aggregationStart, #aggregationEnd {
|
|
|
|
fill: ${options.nodeBkg};
|
2020-07-20 15:15:03 +02:00
|
|
|
stroke: ${options.lineColor};
|
2020-07-17 15:57:02 +02:00
|
|
|
stroke-width: 1;
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default getStyles;
|