svelteplot 0.4.4-pr-105.1 → 0.4.4-pr-105.2
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.
package/dist/helpers/resolve.js
CHANGED
|
@@ -11,7 +11,7 @@ export function resolveProp(accessor, datum, _defaultValue = null) {
|
|
|
11
11
|
// so we're passing the original value to accessor functions instead of our wrapped record
|
|
12
12
|
return datum == null
|
|
13
13
|
? accessor()
|
|
14
|
-
: accessor(datum
|
|
14
|
+
: accessor(datum.hasOwnProperty(RAW_VALUE) ? datum[RAW_VALUE] : datum, datum[INDEX]);
|
|
15
15
|
}
|
|
16
16
|
else if ((typeof accessor === 'string' || typeof accessor === 'symbol') &&
|
|
17
17
|
datum &&
|
package/dist/transforms/stack.js
CHANGED
|
@@ -128,7 +128,7 @@ function stackXY(byDim, data, channels, options) {
|
|
|
128
128
|
: STACK_OFFSET[options.offset])
|
|
129
129
|
.keys(keys)
|
|
130
130
|
.value((d, key, i, data) => {
|
|
131
|
-
return d[key]?.v;
|
|
131
|
+
return d[key]?.v == null ? undefined : d[key]?.v;
|
|
132
132
|
})(stackData);
|
|
133
133
|
// and combine it all back into a flat array
|
|
134
134
|
const newData = series
|