Remove useless var

This commit is contained in:
Eric NGUYEN 2022-10-10 11:04:26 +02:00 committed by Eric Nguyen
parent 710cbd0312
commit 24e47ae240

View file

@ -30,16 +30,6 @@ export function RenderSelector(ctx: CanvasRenderingContext2D, frameCount: number
const xText = x + width / 2;
const yText = y + height / 2;
const style: React.CSSProperties = {
stroke: '#3B82F6',
strokeWidth: 4 / scale,
fillOpacity: 0,
transitionProperty: 'all',
transitionTimingFunction: 'cubic-bezier(0.4, 0, 0.2, 1)',
transitionDuration: '150ms',
animation: 'fadein 750ms ease-in alternate infinite'
};
ctx.strokeStyle = '#3B82F6';
ctx.lineWidth = 4 / scale;
ctx.globalAlpha = 0.25 * (Math.sin(frameCount * 0.0125) ** 2);