From ef031c938e74e1d01ca56008147d7c112c709df3 Mon Sep 17 00:00:00 2001 From: tga Date: Thu, 12 Oct 2023 09:35:09 +0800 Subject: [PATCH] add draw field to render comps --- src/types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/types.ts b/src/types.ts index e0dcd40cf..94ffeda97 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4363,6 +4363,7 @@ export interface SpriteCompOpt { } export interface SpriteComp extends Comp { + draw: Comp["draw"], /** * Width for sprite. */ @@ -4422,6 +4423,7 @@ export interface SpriteComp extends Comp { } export interface TextComp extends Comp { + draw: Comp["draw"], /** * The text to render. */ @@ -4535,6 +4537,7 @@ export interface RectCompOpt { } export interface RectComp extends Comp { + draw: Comp["draw"], /** * Width of rectangle. */ @@ -4561,6 +4564,7 @@ export interface CircleCompOpt { } export interface CircleComp extends Comp { + draw: Comp["draw"], /** * Radius of circle. */ @@ -4572,6 +4576,7 @@ export interface CircleComp extends Comp { } export interface UVQuadComp extends Comp { + draw: Comp["draw"], /** * Width of rect. */