update at 2026-01-22 20:01:21
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user