Skip to content

Commit 89023cb

Browse files
committed
rx and ry are implied auto
1 parent a0d6b4d commit 89023cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/marks/rect.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {ascending} from "d3";
22
import {create} from "d3";
33
import {filter} from "../defined.js";
4-
import {Mark, number, maybeColor, maybeZero, title, string} from "../mark.js";
5-
import {Style, applyDirectStyles, applyIndirectStyles, applyTransform} from "../style.js";
4+
import {Mark, number, maybeColor, maybeZero, title} from "../mark.js";
5+
import {Style, applyDirectStyles, applyIndirectStyles, applyTransform, impliedString} from "../style.js";
66

77
export class Rect extends Mark {
88
constructor(
@@ -47,8 +47,8 @@ export class Rect extends Mark {
4747
this.insetRight = number(insetRight);
4848
this.insetBottom = number(insetBottom);
4949
this.insetLeft = number(insetLeft);
50-
this.rx = string(rx); // number of percentage
51-
this.ry = string(ry);
50+
this.rx = impliedString(rx, "auto"); // number of percentage
51+
this.ry = impliedString(ry, "auto");
5252
}
5353
render(
5454
I,

0 commit comments

Comments
 (0)