update at 2026-01-22 21:05:31
This commit is contained in:
@@ -49,13 +49,15 @@ export class ColorResolver {
|
||||
resolveLayerColors(layer: SectorLayerConfig): Map<number, string> {
|
||||
const colorMap = new Map<number, string>();
|
||||
|
||||
if (!layer.colorRef || !layer.num) {
|
||||
if (!layer.colorRef || layer.divisions <= 0) {
|
||||
return colorMap;
|
||||
}
|
||||
|
||||
const interval = layer.interval ?? 0;
|
||||
const color = this.resolveColor(layer.colorRef);
|
||||
return applyPatternColoring(layer.divisions, color, layer.num, interval);
|
||||
for (let i = 0; i < layer.divisions; i++) {
|
||||
colorMap.set(i, color);
|
||||
}
|
||||
return colorMap;
|
||||
}
|
||||
|
||||
resolveSectorColor(
|
||||
|
||||
Reference in New Issue
Block a user