Skip to content

Commit 60523db

Browse files
committed
#122; 0.5px stroke offset
1 parent 16de353 commit 60523db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/marks/frame.js

+2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ export class Frame extends Mark {
2626
channels,
2727
{marginTop, marginRight, marginBottom, marginLeft, width, height}
2828
) {
29+
const {stroke} = this;
2930
return create("svg:rect")
3031
.call(applyIndirectStyles, this)
3132
.call(applyDirectStyles, this)
33+
.attr("transform", stroke === "none" ? null : `translate(0.5,0.5)`)
3234
.attr("x", marginLeft + this.insetLeft)
3335
.attr("y", marginTop + this.insetTop)
3436
.attr("width", width - marginLeft - marginRight - this.insetLeft - this.insetRight)

0 commit comments

Comments
 (0)