Skip to content

Commit

Permalink
fix: radialGradient cache key was using linearGradient
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefcll committed Dec 30, 2024
1 parent bd2186d commit 8edc3f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ export class RadialGradientEffect extends ShaderEffect {

static override getEffectKey(props: RadialGradientEffectProps): string {
if ((props.colors as unknown as ShaderEffectValueMap).value as number[]) {
return `linearGradient${
return `radialGradient${
((props.colors as unknown as ShaderEffectValueMap).value as number[])
.length
}`;
}
return `linearGradient${props.colors!.length}`;
return `radialGradient${props.colors!.length}`;
}

static override resolveDefaults(
Expand Down

0 comments on commit 8edc3f2

Please sign in to comment.