From c031c1da0037f7108fd5aa5968f1617a11677948 Mon Sep 17 00:00:00 2001 From: Laszlo Simon Date: Mon, 27 May 2024 10:16:35 +0200 Subject: [PATCH] More strict type for transform matrix on TS API --- CHANGELOG.md | 1 + src/apps/weblib/ts-api/geom.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea45a709f..db9876354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Fixed - Do not calculate disabled markers to the color normalization. +- More precise TS type for transform matrix in event handlers. ## [0.11.0] - 2024-05-23 diff --git a/src/apps/weblib/ts-api/geom.ts b/src/apps/weblib/ts-api/geom.ts index c919d44e7..62b833bd5 100644 --- a/src/apps/weblib/ts-api/geom.ts +++ b/src/apps/weblib/ts-api/geom.ts @@ -23,7 +23,7 @@ export interface Line { } /** Object representing an affine transformation 2x3 matrix. */ -export type AffineTransform = number[][] +export type AffineTransform = [[number, number, number], [number, number, number]] /** Rectangle transformed by an affine transformation. */ export interface TransformedRect {