From ab0c344231919e47d34d9005dc6ace4b66b735bb Mon Sep 17 00:00:00 2001 From: Jendrik <12938023+jendrikw@users.noreply.github.com> Date: Thu, 6 Aug 2026 20:44:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75355=20[plotly.js?= =?UTF-8?q?]=20update=20the=20type=20of=20`scaleanchor`=20by=20@jendrikw?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/plotly.js/index.d.ts | 2 +- types/plotly.js/test/core-tests.ts | 1 + types/plotly.js/v2/index.d.ts | 2 +- types/plotly.js/v2/test/core-tests.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 79542bde44051d..4402b1f1f05efe 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -1117,7 +1117,7 @@ export type AxisName = XAxisName | YAxisName; export interface LayoutAxis extends Axis { fixedrange: boolean; - scaleanchor: AxisName; + scaleanchor: AxisName | false; scaleratio: number; constrain: "range" | "domain"; constraintoward: "left" | "center" | "right" | "top" | "middle" | "bottom"; diff --git a/types/plotly.js/test/core-tests.ts b/types/plotly.js/test/core-tests.ts index 284cb995c683a1..42bda171f48872 100644 --- a/types/plotly.js/test/core-tests.ts +++ b/types/plotly.js/test/core-tests.ts @@ -42,6 +42,7 @@ const layout = { showgrid: false, zeroline: false, tickangle, + scaleanchor: false, }, yaxis: { title: { diff --git a/types/plotly.js/v2/index.d.ts b/types/plotly.js/v2/index.d.ts index 95e77f6fef3a48..ce880957bb5dd5 100644 --- a/types/plotly.js/v2/index.d.ts +++ b/types/plotly.js/v2/index.d.ts @@ -1119,7 +1119,7 @@ export type AxisName = XAxisName | YAxisName; export interface LayoutAxis extends Axis { fixedrange: boolean; - scaleanchor: AxisName; + scaleanchor: AxisName | false; scaleratio: number; constrain: "range" | "domain"; constraintoward: "left" | "center" | "right" | "top" | "middle" | "bottom"; diff --git a/types/plotly.js/v2/test/core-tests.ts b/types/plotly.js/v2/test/core-tests.ts index 8a0437f27f056e..3c72675686f4a8 100644 --- a/types/plotly.js/v2/test/core-tests.ts +++ b/types/plotly.js/v2/test/core-tests.ts @@ -40,6 +40,7 @@ const layout = { showgrid: false, zeroline: false, tickangle, + scaleanchor: false, }, yaxis: { title: "Percent",