From e335bf2f87e9ae5980ec012139d631ce7771b57b Mon Sep 17 00:00:00 2001 From: "douboer@gmail.com" Date: Thu, 22 Jan 2026 20:44:30 +0800 Subject: [PATCH] update at 2026-01-22 20:44:30 --- src/sectorBuilder.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sectorBuilder.ts b/src/sectorBuilder.ts index bf6e3ed..5a37e9f 100644 --- a/src/sectorBuilder.ts +++ b/src/sectorBuilder.ts @@ -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,