Skip to content

Commit 4e579c9

Browse files
committed
merge dodge anchor option
1 parent db30802 commit 4e579c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/transforms/dodge.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ export function dodgeY(dodgeOptions = {}, options = {}) {
4040
}
4141

4242
function mergeOptions(options) {
43-
const {padding, ...rest} = options;
44-
return [{padding}, rest];
43+
const {anchor, padding, ...rest} = options;
44+
return [{anchor, padding}, rest];
4545
}
4646

4747
function dodge(y, x, anchor, padding, options) {

0 commit comments

Comments
 (0)