update at 2026-01-22 20:42:57

This commit is contained in:
douboer@gmail.com
2026-01-22 20:42:57 +08:00
parent f2f42f077e
commit 0b465031d9

View File

@@ -66,7 +66,8 @@ export class SectorBuilder {
this.insetDistance
)
: undefined;
const baseFillColor = innerFill ? '#ffffff' : fillColor;
const hasInnerFillPath = Boolean(innerFillPath);
const baseFillColor = hasInnerFillPath ? '#ffffff' : fillColor;
const sectorKey = `L${layerIndex}-P${i}`;
const textPathId = `text-path-${sectorKey}`;
@@ -120,7 +121,7 @@ export class SectorBuilder {
label: isMultiText ? '' : rawContent,
path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd),
innerFillPath,
innerFillColor: innerFill ? fillColor : undefined,
innerFillColor: hasInnerFillPath ? fillColor : undefined,
textPath,
textPathId,
isVertical,