122 lines
2.1 KiB
JavaScript
Raw Normal View History

2020-07-17 15:57:02 +02:00
const getStyles = options =>
`g.classGroup text {
fill: ${options.nodeBorder};
fill: ${options.classText};
2020-07-17 15:57:02 +02:00
stroke: none;
font-family: ${options.fontFamily};
2020-07-17 15:57:02 +02:00
font-size: 10px;
2020-08-27 20:43:37 +02:00
}
.classTitle {
font-weight: bolder;
2020-07-17 15:57:02 +02:00
}
2020-07-22 21:25:01 +02:00
.node rect,
.node circle,
.node ellipse,
.node polygon,
.node path {
fill: ${options.mainBkg};
stroke: ${options.nodeBorder};
stroke-width: 1px;
}
2020-07-17 15:57:02 +02:00
.divider {
2020-07-22 19:25:26 +02:00
stroke: ${options.nodeBorder};
stroke: 1;
}
2020-07-17 15:57:02 +02:00
g.clickable {
cursor: pointer;
}
g.classGroup rect {
fill: ${options.mainBkg};
2020-07-17 15:57:02 +02:00
stroke: ${options.nodeBorder};
}
g.classGroup line {
stroke: ${options.nodeBorder};
stroke-width: 1;
}
.classLabel .box {
stroke: none;
stroke-width: 0;
fill: ${options.mainBkg};
2020-07-17 15:57:02 +02:00
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;
}
#compositionStart, .composition {
fill: ${options.lineColor} !important;
stroke: ${options.lineColor} !important;
2020-07-17 15:57:02 +02:00
stroke-width: 1;
}
#compositionEnd, .composition {
fill: ${options.lineColor} !important;
stroke: ${options.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${options.lineColor} !important;
stroke: ${options.lineColor} !important;
stroke-width: 1;
}
#dependencyStart, .dependency {
fill: ${options.lineColor} !important;
stroke: ${options.lineColor} !important;
stroke-width: 1;
}
#extensionStart, .extension {
fill: ${options.lineColor} !important;
stroke: ${options.lineColor} !important;
stroke-width: 1;
}
#extensionEnd, .extension {
fill: ${options.lineColor} !important;
stroke: ${options.lineColor} !important;
stroke-width: 1;
}
#aggregationStart, .aggregation {
fill: ${options.mainBkg} !important;
stroke: ${options.lineColor} !important;
stroke-width: 1;
}
#aggregationEnd, .aggregation {
fill: ${options.mainBkg} !important;
stroke: ${options.lineColor} !important;
2020-07-17 15:57:02 +02:00
stroke-width: 1;
}
.edgeTerminals {
font-size: 11px;
}
2020-07-17 15:57:02 +02:00
`;
export default getStyles;