svelteplot 0.14.0-pr-545.5 → 0.14.0-pr-545.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -198,11 +198,14 @@
|
|
|
198
198
|
/**
|
|
199
199
|
* When fill is active (not "none" or "density"), stroke defaults to "none";
|
|
200
200
|
* otherwise it defaults to "currentColor".
|
|
201
|
+
* fillIsAccessor also counts as "fill active" even though the static fill
|
|
202
|
+
* prop is forced to "none" for GeoPathGroup — per-path fills flow via d.fill.
|
|
201
203
|
*/
|
|
202
204
|
const effectiveStroke = $derived<string>(
|
|
203
205
|
strokeIsAccessor
|
|
204
206
|
? 'currentColor'
|
|
205
|
-
: ((rawStroke as string | undefined) ??
|
|
207
|
+
: ((rawStroke as string | undefined) ??
|
|
208
|
+
(fill !== 'none' || fillIsAccessor ? 'none' : 'currentColor'))
|
|
206
209
|
);
|
|
207
210
|
|
|
208
211
|
const strokeDensity = $derived(/^density$/i.test(effectiveStroke ?? ''));
|