Skip to content

Commit

Permalink
fix transform
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Mar 10, 2021
1 parent 06eb00d commit 3b903e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/facet.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ export function facets(data, {x, y, ...options}, marks) {
}

class Facet extends Mark {
constructor(data, {x, y, transform} = {}, marks = []) {
constructor(data, {x, y, ...options} = {}, marks = []) {
super(
data,
[
{name: "fx", value: x, scale: "fx", type: "band", optional: true},
{name: "fy", value: y, scale: "fy", type: "band", optional: true}
],
transform
options
);
this.marks = marks;
// The following fields are set by initialize:
Expand Down
7 changes: 3 additions & 4 deletions src/marks/rule.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ export class RuleY extends Mark {
z,
title,
stroke,
transform,
...style
...options
} = {}
) {
const [vstroke, cstroke] = maybeColor(stroke, "currentColor");
Expand All @@ -82,9 +81,9 @@ export class RuleY extends Mark {
{name: "title", value: title, optional: true},
{name: "stroke", value: vstroke, scale: "color", optional: true}
],
transform
options
);
Style(this, {stroke: cstroke, ...style});
Style(this, {stroke: cstroke, ...options});
}
render(
I,
Expand Down

0 comments on commit 3b903e1

Please sign in to comment.