Skip to content

Commit 89e8c7e

Browse files
authored
Update axis/text color for background color change (#263)
1 parent dd8a416 commit 89e8c7e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

client/src/components/geoJS/LayerManager.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,9 @@ export default defineComponent({
756756
if (legendLayer) {
757757
legendLayer.setTextColor(textColor);
758758
}
759+
if (axesLayer) {
760+
axesLayer.setTextColor(textColor);
761+
}
759762
if (timeLayer) {
760763
timeLayer.setTextColor(textColor);
761764
}

client/src/components/geoJS/layers/axesLayer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,11 @@ export default class AxesLayer extends BaseTextLayer<TickTextData> {
501501
}
502502
}
503503

504+
setTextColor(newColor: string): void {
505+
this.color = newColor;
506+
this.drawAxes();
507+
}
508+
504509
createAxesStyle() {
505510
return {
506511
strokeWidth: 1,

0 commit comments

Comments
 (0)