From 8b60f0114d19c5d5499515c80071d2258a55ad8e Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Mon, 23 Oct 2023 09:08:57 -0700 Subject: [PATCH] fix bollinger reference --- docs/data/api.data.ts | 3 ++- src/marks/bollinger.d.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/data/api.data.ts b/docs/data/api.data.ts index f159806e72..3efbb7c156 100644 --- a/docs/data/api.data.ts +++ b/docs/data/api.data.ts @@ -85,7 +85,8 @@ function getInterfaceName(name: string, path: string): string { name = name.toLowerCase(); if (name === "curve auto") name = "curve"; if (name === "plot facet") name = "plot"; - if (path.startsWith("marks/")) name += " mark"; + if (name === "bollinger window") name = "bollinger map method"; + else if (path.startsWith("marks/")) name += " mark"; else if (path.startsWith("transforms/")) name += " transform"; return name; } diff --git a/src/marks/bollinger.d.ts b/src/marks/bollinger.d.ts index 8a2087c140..bc025d3237 100644 --- a/src/marks/bollinger.d.ts +++ b/src/marks/bollinger.d.ts @@ -4,7 +4,7 @@ import type {WindowOptions} from "../transforms/window.js"; import type {AreaXOptions, AreaYOptions} from "./area.js"; import type {LineXOptions, LineYOptions} from "./line.js"; -/** Options for the bollinger window transform. */ +/** Options for the bollinger map method. */ export interface BollingerWindowOptions { /** The number of consecutive values in the window; defaults to 20. */ n?: number;