Skip to content

Commit

Permalink
docs: add pos to DrawSpriteOpt (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmad3366 authored Sep 1, 2024
1 parent 61160da commit 7766f64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gfx/draw/drawSprite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ export type DrawSpriteOpt = RenderProps & {
* The anchor point, or the pivot point. Default to "topleft".
*/
anchor?: Anchor | Vec2;
/**
* The position
*/
pos?: Vec2;
};

export function drawSprite(opt: DrawSpriteOpt) {
Expand Down

0 comments on commit 7766f64

Please sign in to comment.