Skip to content

Commit

Permalink
chore(πŸ’„): Minor refactoring in common drawing props (#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcandillon authored Jan 4, 2025
1 parent 899913d commit 592f06c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/skia/src/dom/types/Common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {}

0 comments on commit 592f06c

Please sign in to comment.