Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
add draw field to render comps
Browse files Browse the repository at this point in the history
  • Loading branch information
slmjkdbtl committed Oct 12, 2023
1 parent 419cd28 commit ef031c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4363,6 +4363,7 @@ export interface SpriteCompOpt {
}

export interface SpriteComp extends Comp {
draw: Comp["draw"],
/**
* Width for sprite.
*/
Expand Down Expand Up @@ -4422,6 +4423,7 @@ export interface SpriteComp extends Comp {
}

export interface TextComp extends Comp {
draw: Comp["draw"],
/**
* The text to render.
*/
Expand Down Expand Up @@ -4535,6 +4537,7 @@ export interface RectCompOpt {
}

export interface RectComp extends Comp {
draw: Comp["draw"],
/**
* Width of rectangle.
*/
Expand All @@ -4561,6 +4564,7 @@ export interface CircleCompOpt {
}

export interface CircleComp extends Comp {
draw: Comp["draw"],
/**
* Radius of circle.
*/
Expand All @@ -4572,6 +4576,7 @@ export interface CircleComp extends Comp {
}

export interface UVQuadComp extends Comp {
draw: Comp["draw"],
/**
* Width of rect.
*/
Expand Down

0 comments on commit ef031c9

Please sign in to comment.