update at 2026-01-22 20:17:52
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
"background": "金",
|
"background": "金",
|
||||||
"strokeWidth": 0.5,
|
"strokeWidth": 0.5,
|
||||||
"strokeColor": "冷",
|
"strokeColor": "冷",
|
||||||
"insetDistance": 5,
|
"insetDistance": 1,
|
||||||
"strokeOpacity": 0.5,
|
"strokeOpacity": 0.5,
|
||||||
"theme": {
|
"theme": {
|
||||||
"name": "五行配色主题",
|
"name": "五行配色主题",
|
||||||
|
|||||||
@@ -62,26 +62,14 @@
|
|||||||
/>
|
/>
|
||||||
</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"
|
||||||
:fill="s.innerFillColor"
|
:fill="s.innerFillColor"
|
||||||
fill-opacity="0.6"
|
fill-opacity="1"
|
||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ 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}`;
|
||||||
@@ -114,7 +115,7 @@ export class SectorBuilder {
|
|||||||
aMidRad: centroid.aMidRad,
|
aMidRad: centroid.aMidRad,
|
||||||
cx: centroid.cx,
|
cx: centroid.cx,
|
||||||
cy: centroid.cy,
|
cy: centroid.cy,
|
||||||
fill: fillColor,
|
fill: baseFillColor,
|
||||||
textColor,
|
textColor,
|
||||||
label: isMultiText ? '' : rawContent,
|
label: isMultiText ? '' : rawContent,
|
||||||
path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd),
|
path: annularSectorPath(layer.rInner, layer.rOuter, aStart, aEnd),
|
||||||
|
|||||||
Reference in New Issue
Block a user