From 1397ec5bf7851365d8f430f0b54b1053b34a650d Mon Sep 17 00:00:00 2001 From: "douboer@gmail.com" Date: Thu, 22 Jan 2026 20:17:52 +0800 Subject: [PATCH] update at 2026-01-22 20:17:52 --- public/demo.json | 2 +- src/Luopan.vue | 16 ++-------------- src/sectorBuilder.ts | 3 ++- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/public/demo.json b/public/demo.json index 92f9da8..56f0690 100644 --- a/public/demo.json +++ b/public/demo.json @@ -4,7 +4,7 @@ "background": "金", "strokeWidth": 0.5, "strokeColor": "冷", - "insetDistance": 5, + "insetDistance": 1, "strokeOpacity": 0.5, "theme": { "name": "五行配色主题", diff --git a/src/Luopan.vue b/src/Luopan.vue index 682da03..de10f46 100644 --- a/src/Luopan.vue +++ b/src/Luopan.vue @@ -62,26 +62,14 @@ /> - + diff --git a/src/sectorBuilder.ts b/src/sectorBuilder.ts index 72d28a3..344a5a8 100644 --- a/src/sectorBuilder.ts +++ b/src/sectorBuilder.ts @@ -66,6 +66,7 @@ export class SectorBuilder { this.insetDistance ) : undefined; + const baseFillColor = innerFill ? '#ffffff' : fillColor; const sectorKey = `L${layerIndex}-P${i}`; const textPathId = `text-path-${sectorKey}`; @@ -114,7 +115,7 @@ export class SectorBuilder { aMidRad: centroid.aMidRad, cx: centroid.cx, cy: centroid.cy, - fill: fillColor, + fill: baseFillColor, textColor, label: isMultiText ? '' : rawContent, path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd),