Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "xdim", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Multi-Dimensional Functions. Create, Query, and Transform Multi-Dimensional Data.", | ||
@@ -5,0 +5,0 @@ "main": "src/xdim.js", |
@@ -484,3 +484,3 @@ const layoutCache = {}; | ||
function transform({ data, fill, from, to, sizes, useLayoutCache = true }) { | ||
function transform({ data, fill = undefined, from, to, sizes, useLayoutCache = true }) { | ||
if (typeof from === "string") from = parse(from, { useLayoutCache }); | ||
@@ -491,2 +491,9 @@ if (typeof to === "string") to = parse(to, { useLayoutCache }); | ||
const update = prepareUpdate({ | ||
useLayoutCache, | ||
data: out_data, | ||
layout: to, | ||
sizes | ||
}); | ||
const points = iterPoints({ sizes }); | ||
@@ -504,6 +511,3 @@ | ||
update({ | ||
data: out_data, | ||
layout: to, | ||
point, | ||
sizes, | ||
value | ||
@@ -510,0 +514,0 @@ }); |
46059
533