From 592f06cd64f0e303bb5025e7887345a2be2aa972 Mon Sep 17 00:00:00 2001 From: William Candillon Date: Sat, 4 Jan 2025 11:52:32 +0100 Subject: [PATCH] =?UTF-8?q?chore(=F0=9F=92=84):=20Minor=20refactoring=20in?= =?UTF-8?q?=20common=20drawing=20props=20(#2860)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/skia/src/dom/types/Common.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/skia/src/dom/types/Common.ts b/packages/skia/src/dom/types/Common.ts index 81ee8d2041..fad5b45b03 100644 --- a/packages/skia/src/dom/types/Common.ts +++ b/packages/skia/src/dom/types/Common.ts @@ -70,6 +70,12 @@ export interface TransformProps { matrix?: InputMatrix; } +export interface CTMProps extends TransformProps { + clip?: ClipDef; + invertClip?: boolean; + layer?: SkPaint | boolean; +} + export interface PaintProps extends ChildrenProps { color?: Color; strokeWidth?: number; @@ -83,8 +89,4 @@ export interface PaintProps extends ChildrenProps { dither?: boolean; } -export interface GroupProps extends PaintProps, TransformProps { - clip?: ClipDef; - invertClip?: boolean; - layer?: SkPaint | boolean; -} +export interface GroupProps extends PaintProps, CTMProps {}