From 7a360d63ba38cf38975240250d82e7d1a7bf47b7 Mon Sep 17 00:00:00 2001 From: Denis Lohner <66110334+denislohner@users.noreply.github.com> Date: Tue, 4 Aug 2026 14:04:04 +0200 Subject: [PATCH 1/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75303=20[plotl?= =?UTF-8?q?y.js]=20Add=20missing=20default=20modebar=20buttons=20of=20plot?= =?UTF-8?q?ly=203.7.0=20by=20@denislohner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/plotly.js/index.d.ts | 23 +++++++++++++++++++++-- types/plotly.js/test/index-tests.ts | 2 ++ types/plotly.js/v2/index.d.ts | 21 ++++++++++++++++++++- types/plotly.js/v2/test/index-tests.ts | 2 ++ 4 files changed, 45 insertions(+), 3 deletions(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index 95ee8d384485d51..d7167f0ee6773c2 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -1270,7 +1270,6 @@ export type ModeBarDefaultButtons = | "zoomOutGeo" | "resetGeo" | "hoverClosestGeo" - | "hoverClosestGl2d" | "hoverClosestPie" | "toggleHover" | "toImage" @@ -1286,7 +1285,27 @@ export type ModeBarDefaultButtons = | "togglehover" | "hovercompare" | "hoverclosest" - | "v1hovermode"; + | "v1hovermode" + | "sendChartToCloud" + | "drawclosedpath" + | "drawopenpath" + | "drawline" + | "drawrect" + | "drawcircle" + | "eraseshape" + | "resetViewSankey" + | "zoom" + | "pan" + | "select" + | "lasso" + | "zoomin" + | "zoomout" + | "autoscale" + | "resetscale" + | "resetCameraDefault" + | "resetCameraLastSave" + | "reset" + | "resetView"; export type ButtonClickEvent = (gd: PlotlyHTMLElement, ev: MouseEvent) => void; diff --git a/types/plotly.js/test/index-tests.ts b/types/plotly.js/test/index-tests.ts index ff343506acd0f9f..8fa70f3e9eb0152 100644 --- a/types/plotly.js/test/index-tests.ts +++ b/types/plotly.js/test/index-tests.ts @@ -61,6 +61,8 @@ const config: Partial = { modeBarButtonsToAdd: [ "togglespikelines", "togglehover", + "drawrect", + "zoom", { name: "customButton", title: "Custom Action", diff --git a/types/plotly.js/v2/index.d.ts b/types/plotly.js/v2/index.d.ts index 93097447bd55210..95e77f6fef3a48d 100644 --- a/types/plotly.js/v2/index.d.ts +++ b/types/plotly.js/v2/index.d.ts @@ -1289,7 +1289,26 @@ export type ModeBarDefaultButtons = | "togglehover" | "hovercompare" | "hoverclosest" - | "v1hovermode"; + | "v1hovermode" + | "drawclosedpath" + | "drawopenpath" + | "drawline" + | "drawrect" + | "drawcircle" + | "eraseshape" + | "resetViewSankey" + | "zoom" + | "pan" + | "select" + | "lasso" + | "zoomin" + | "zoomout" + | "autoscale" + | "resetscale" + | "resetCameraDefault" + | "resetCameraLastSave" + | "reset" + | "resetView"; export type ButtonClickEvent = (gd: PlotlyHTMLElement, ev: MouseEvent) => void; diff --git a/types/plotly.js/v2/test/index-tests.ts b/types/plotly.js/v2/test/index-tests.ts index 05127f1d89c3e02..336561d020c76ac 100644 --- a/types/plotly.js/v2/test/index-tests.ts +++ b/types/plotly.js/v2/test/index-tests.ts @@ -61,6 +61,8 @@ const config: Partial = { modeBarButtonsToAdd: [ "togglespikelines", "togglehover", + "drawrect", + "zoom", { name: "customButton", title: "Custom Action", From 91f89d118ffc32618810fe4d05bb24f8a7442f3e Mon Sep 17 00:00:00 2001 From: Zee Date: Tue, 4 Aug 2026 16:26:13 +0200 Subject: [PATCH 2/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75347=20[cooki?= =?UTF-8?q?eclicker]=20Update=20owner=20username=20by=20@zyudneko?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/cookieclicker/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/cookieclicker/package.json b/types/cookieclicker/package.json index c509a266c7457da..f485cf14cccf6ac 100644 --- a/types/cookieclicker/package.json +++ b/types/cookieclicker/package.json @@ -12,8 +12,8 @@ }, "owners": [ { - "name": "Lubomir", - "githubUsername": "TheGLander" + "name": "Zee", + "githubUsername": "zyudneko" }, { "name": "Static Variable James", From c61f43e65a7bde0bb1ae3cc37d54d018605929c7 Mon Sep 17 00:00:00 2001 From: Robert Nilsson <45368533+bobnil@users.noreply.github.com> Date: Tue, 4 Aug 2026 18:31:49 +0200 Subject: [PATCH 3/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75289=20[pg]?= =?UTF-8?q?=20Add=20missing=20"connect"=20event=20to=20ClientBase.on=20typ?= =?UTF-8?q?ings=20by=20@bobnil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Robert I Nilsson --- types/pg/index.d.ts | 4 ++-- types/pg/pg-tests.mts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index 756abf9598aa277..8642887f1e55770 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -282,9 +282,9 @@ export class ClientBase extends events.EventEmitter { setTypeParser: typeof pgTypes.setTypeParser; getTypeParser: typeof pgTypes.getTypeParser; - on( + on( event: E, - listener: E extends "drain" | "end" ? () => void + listener: E extends "connect" | "drain" | "end" ? () => void : E extends "error" ? (err: Error) => void : E extends "notice" ? (notice: NoticeMessage) => void : (message: Notification) => void, diff --git a/types/pg/pg-tests.mts b/types/pg/pg-tests.mts index 30e04e0f081d4fe..7a159f97b28e14e 100644 --- a/types/pg/pg-tests.mts +++ b/types/pg/pg-tests.mts @@ -76,6 +76,10 @@ const myFunc2 = (c: pg.Client) => { c.on("drain", () => {}); }; +const myFunc3 = (c: pg.Client) => { + c.on("connect", () => {}); +}; + // $ExpectType ClientBase new pg.ClientBase(); // $ExpectType ClientBase From 9b8c439923b8b185944d709809a9ac4d1a48462d Mon Sep 17 00:00:00 2001 From: Rajan Pantha Date: Tue, 4 Aug 2026 22:29:57 +0545 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A4=96=20Merge=20PR=20#75285=20[plotl?= =?UTF-8?q?y.js]=20Add=20d2p=20to=20LayoutAxis=20by=20@rajanpanth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/plotly.js/index.d.ts | 3 ++- types/plotly.js/test/index-tests.ts | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index d7167f0ee6773c2..79542bde44051d4 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -1134,7 +1134,8 @@ export interface LayoutAxis extends Axis { automargin: boolean; angle: any; griddash: Dash; - l2p: (v: Datum) => number; + l2p: (v: number) => number; + d2p: (v: Datum, clip?: any, calendar?: any) => number; autotickangles: number[]; insiderange: any[]; diff --git a/types/plotly.js/test/index-tests.ts b/types/plotly.js/test/index-tests.ts index 8fa70f3e9eb0152..07753942b759ec1 100644 --- a/types/plotly.js/test/index-tests.ts +++ b/types/plotly.js/test/index-tests.ts @@ -1660,3 +1660,11 @@ function rand() { Plotly.newPlot("myDiv", data, layout); })(); + +(() => { + const axis = {} as Plotly.LayoutAxis; + const dataPixel: number = axis.d2p(2.5); + const logPixel: number = axis.d2p(2.5, true); + const datePixel: number = axis.d2p("2024-01-01", undefined, "gregorian"); + const linearizedPixel: number = axis.l2p(2.5); +})();