Skip to content

Commit 47d3acb

Browse files
committed
fix transforms that rely on *z* when *z* is an object with a {value} property
1 parent 1c6b239 commit 47d3acb

5 files changed

Lines changed: 725 additions & 0 deletions

File tree

src/options.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ export function maybeTuple(x, y) {
280280
export function maybeZ({z, fill, stroke} = {}) {
281281
if (z === undefined) [z] = maybeColorChannel(fill);
282282
if (z === undefined) [z] = maybeColorChannel(stroke);
283+
if (isOptions(z)) z = z.value;
283284
return z;
284285
}
285286

test/output/zValueSelect.svg

Lines changed: 70 additions & 0 deletions
Loading

test/output/zValueStack.svg

Lines changed: 84 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)