update at 2026-01-22 20:01:21

This commit is contained in:
douboer@gmail.com
2026-01-22 20:01:21 +08:00
parent a3e77045ac
commit 9160bc1a70
4 changed files with 13 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ export function useLuopan(
const resolver = new ColorResolver(configObj.theme, configObj.background);
const builder = new SectorBuilder(resolver, {
textRadialPosition: textRadialPosition.value,
insetDistance: configObj.insetDistance,
});
const sectorLayers = configObj.layers.filter(isSectorLayer);
return sectorLayers.flatMap((layer, index) => builder.buildLayer(layer, index));
@@ -104,6 +105,9 @@ export function useLuopan(
strokeOpacity: typeof configObj.strokeOpacity === 'number'
? configObj.strokeOpacity
: undefined,
insetDistance: typeof configObj.insetDistance === 'number'
? configObj.insetDistance
: undefined,
};
config.value = resolvedConfig;