Skip to content

Commit

Permalink
fix(scratch-render): fix scale types
Browse files Browse the repository at this point in the history
`scale` is not a number, it's a tuple like `[number, number]`.

https://github.com/scratchfoundation/scratch-render/blob/develop/src/Drawable.js#L232
  • Loading branch information
nakasyou authored Nov 25, 2024
1 parent 29637ab commit bfcc5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/scratch-render.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ declare class RenderWebGL extends EventEmitter<RenderWebGL.ScratchRenderEventMap
updateDrawableSkinId(drawableId: number, skinId: number): void;
updateDrawablePosition(drawableId: number, position: [number, number]): void;
updateDrawableDirection(drawableId: number, direction: number): void;
updateDrawableScale(drawableId: number, scale: number): void;
updateDrawableDirectionScale(drawableId: number, direction: number, scale: number): void;
updateDrawableScale(drawableId: number, scale: [number, number]): void;
updateDrawableDirectionScale(drawableId: number, direction: number, scale: [number, number]): void;
updateDrawableVisible(drawableId: number, visible: boolean): void;
updateDrawableEffect(drawableId: number, effectName: RenderWebGL.Effect, value: number): void;
/**
Expand Down

0 comments on commit bfcc5d5

Please sign in to comment.