🎨 Add themes for radar

This commit is contained in:
Thomas Di Cizerone
2025-03-16 18:15:30 +01:00
parent 1fb91d14c9
commit d53c66dde5
5 changed files with 70 additions and 0 deletions

View File

@@ -230,6 +230,20 @@ class Theme {
this.pieOuterStrokeColor = this.pieOuterStrokeColor || 'black';
this.pieOpacity = this.pieOpacity || '0.7';
/* radar */
this.radar = {
axisColor: this.radar?.axisColor || this.lineColor,
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
curveOpacity: this.radar?.curveOpacity || 0.5,
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
graticuleColor: this.radar?.graticuleColor || '#DEDEDE',
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
legendBoxSize: this.radar?.legendBoxSize || 12,
legendFontSize: this.radar?.legendFontSize || 12,
};
/* architecture */
this.archEdgeColor = this.archEdgeColor || '#777';
this.archEdgeArrowColor = this.archEdgeArrowColor || '#777';

View File

@@ -291,6 +291,20 @@ class Theme {
blockFillColor: this.background,
};
/* radar */
this.radar = {
axisColor: this.radar?.axisColor || this.lineColor,
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
curveOpacity: this.radar?.curveOpacity || 0.5,
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
graticuleColor: this.radar?.graticuleColor || '#DEDEDE',
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
legendBoxSize: this.radar?.legendBoxSize || 12,
legendFontSize: this.radar?.legendFontSize || 12,
};
/* class */
this.classText = this.primaryTextColor;

View File

@@ -291,6 +291,20 @@ class Theme {
this.quadrantExternalBorderStrokeFill || this.primaryBorderColor;
this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor;
/* radar */
this.radar = {
axisColor: this.radar?.axisColor || this.lineColor,
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
curveOpacity: this.radar?.curveOpacity || 0.5,
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
graticuleColor: this.radar?.graticuleColor || '#DEDEDE',
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
legendBoxSize: this.radar?.legendBoxSize || 12,
legendFontSize: this.radar?.legendFontSize || 12,
};
/* xychart */
this.xyChart = {
backgroundColor: this.xyChart?.backgroundColor || this.background,

View File

@@ -265,6 +265,20 @@ class Theme {
blockFillColor: this.mainBkg,
};
/* radar */
this.radar = {
axisColor: this.radar?.axisColor || this.lineColor,
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
curveOpacity: this.radar?.curveOpacity || 0.5,
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
graticuleColor: this.radar?.graticuleColor || '#DEDEDE',
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
legendBoxSize: this.radar?.legendBoxSize || 12,
legendFontSize: this.radar?.legendFontSize || 12,
};
/* xychart */
this.xyChart = {
backgroundColor: this.xyChart?.backgroundColor || this.background,

View File

@@ -303,6 +303,20 @@ class Theme {
'#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0',
};
/* radar */
this.radar = {
axisColor: this.radar?.axisColor || this.lineColor,
axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
curveOpacity: this.radar?.curveOpacity || 0.5,
curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
graticuleColor: this.radar?.graticuleColor || '#DEDEDE',
graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
graticuleOpacity: this.radar?.graticuleOpacity || 0.3,
legendBoxSize: this.radar?.legendBoxSize || 12,
legendFontSize: this.radar?.legendFontSize || 12,
};
/* requirement-diagram */
this.requirementBackground = this.requirementBackground || this.primaryColor;
this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor;