update at 2026-01-22 20:44:30

This commit is contained in:
douboer@gmail.com
2026-01-22 20:44:30 +08:00
parent 0b465031d9
commit e335bf2f87

View File

@@ -66,7 +66,9 @@ export class SectorBuilder {
this.insetDistance
)
: undefined;
const hasInnerFillPath = Boolean(innerFillPath);
const normalizedInnerFillPath =
innerFillPath && innerFillPath.length > 0 ? innerFillPath : undefined;
const hasInnerFillPath = Boolean(normalizedInnerFillPath);
const baseFillColor = hasInnerFillPath ? '#ffffff' : fillColor;
const sectorKey = `L${layerIndex}-P${i}`;
@@ -120,7 +122,7 @@ export class SectorBuilder {
textColor,
label: isMultiText ? '' : rawContent,
path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd),
innerFillPath,
innerFillPath: normalizedInnerFillPath,
innerFillColor: hasInnerFillPath ? fillColor : undefined,
textPath,
textPathId,