Skip to content

Commit aada528

Browse files
committed
uplift an old warning
1 parent 85c2130 commit aada528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/transforms/window.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {mapX, mapY} from "./map.js";
22
import {deviation, max, min, median, mode, variance} from "d3";
3+
import {warn} from "../warnings.js";
34

45
export function windowX(windowOptions = {}, options) {
56
if (arguments.length === 1) options = windowOptions;
@@ -29,7 +30,7 @@ function maybeAnchor(anchor = "middle", k) {
2930

3031
function maybeShift(shift) {
3132
if (shift === undefined) return;
32-
console.warn("shift is deprecated; please use anchor instead");
33+
warn("Warning: shift is deprecated; please use anchor instead");
3334
switch (`${shift}`.toLowerCase()) {
3435
case "centered": return "middle";
3536
case "leading": return "start";

0 commit comments

Comments
 (0)