update at 2026-01-22 20:11:14

This commit is contained in:
douboer@gmail.com
2026-01-22 20:11:14 +08:00
parent fbf720c295
commit 4b371d3929
2 changed files with 14 additions and 3 deletions

View File

@@ -62,9 +62,21 @@
/> />
</g> </g>
<!-- 内部填色区域 --> <!-- 缩白边 + 部填色区域 -->
<g> <g>
<template v-for="s in sectors" :key="s.key + '-inner'"> <template v-for="s in sectors" :key="s.key + '-inner'">
<path
v-if="s.innerFillPath"
:d="s.path"
fill="#ffffff"
stroke="none"
/>
<path
v-if="s.innerFillPath"
:d="s.innerFillPath"
:fill="s.fill"
stroke="none"
/>
<path <path
v-if="s.innerFillPath" v-if="s.innerFillPath"
:d="s.innerFillPath" :d="s.innerFillPath"

View File

@@ -66,7 +66,6 @@ export class SectorBuilder {
this.insetDistance this.insetDistance
) )
: undefined; : undefined;
const baseFillColor = innerFill ? '#ffffff' : fillColor;
const sectorKey = `L${layerIndex}-P${i}`; const sectorKey = `L${layerIndex}-P${i}`;
const textPathId = `text-path-${sectorKey}`; const textPathId = `text-path-${sectorKey}`;
@@ -115,7 +114,7 @@ export class SectorBuilder {
aMidRad: centroid.aMidRad, aMidRad: centroid.aMidRad,
cx: centroid.cx, cx: centroid.cx,
cy: centroid.cy, cy: centroid.cy,
fill: baseFillColor, fill: fillColor,
textColor, textColor,
label: isMultiText ? '' : rawContent, label: isMultiText ? '' : rawContent,
path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd), path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd),