Skip to content

Commit 5ff4f1c

Browse files
committed
naming consistency
1 parent 0e51414 commit 5ff4f1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {string, number, maybeColorChannel, maybeNumberChannel, isTemporal, isNum
55

66
export const offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5;
77

8-
let nextClipPathId = 0;
8+
let nextClipId = 0;
99

1010
export function styles(
1111
mark,
@@ -199,7 +199,7 @@ export function applyIndirectStyles(selection, mark, {width, height, marginLeft,
199199
applyAttr(selection, "shape-rendering", mark.shapeRendering);
200200
applyAttr(selection, "paint-order", mark.paintOrder);
201201
if (mark.clip === "frame") {
202-
const id = `plot-clip-${++nextClipPathId}`;
202+
const id = `plot-clip-${++nextClipId}`;
203203
const w = width - marginRight - marginLeft;
204204
const h = height - marginTop - marginBottom;
205205
selection.append("clipPath").attr("id", id).append("rect").attr("width", w).attr("height", h);

0 commit comments

Comments
 (0)