update at 2026-01-22 21:12:46

This commit is contained in:
douboer@gmail.com
2026-01-22 21:12:46 +08:00
parent 6c26e15402
commit 080700f721
2 changed files with 26 additions and 4 deletions

View File

@@ -54,6 +54,11 @@ export class ColorResolver {
}
const color = this.resolveColor(layer.colorRef);
if (typeof layer.num === 'number' && layer.num > 0) {
const interval = layer.interval ?? 0;
return applyPatternColoring(layer.divisions, color, layer.num, interval);
}
for (let i = 0; i < layer.divisions; i++) {
colorMap.set(i, color);
}