Apply the auto-fixable lint rules and the formatter, and drop the Vite build artifacts.
Checks / checks (push) Successful in 2m11s
Trigger cinny-mobile / dispatch (push) Successful in 1s

This commit is contained in:
litruv committed 2026-11-01 04:23:53 +11:00
1 parent 3cd159a63e
commit a6ad8651b3
605 files changed
+11480 -9125

No files matched your search

@@ -1,7 +1,12 @@
import React, { useEffect, useMemo, useRef } from 'react';
import { createPortal } from 'react-dom';
import { EmojiConfettiBurst } from './types';
import { findJumboEmojiElement, getLocalBurstCanvasSize, measureJumboGlyph, setJumboEmojiHidden } from './findJumboMount';
import {
findJumboEmojiElement,
getLocalBurstCanvasSize,
measureJumboGlyph,
setJumboEmojiHidden,
} from './findJumboMount';
import {
BurstParticle,
drawBurstParticles,
@@ -30,7 +35,9 @@ export function EmojiConfettiBurstCanvas({ burst, onComplete }: EmojiConfettiBur
const fullscreen = isFullscreenBurstEmoji(primaryEmoji);
if (fullscreen) {
return <FireworkBurstCanvas burst={burst} primaryEmoji={primaryEmoji} onComplete={onComplete} />;
return (
<FireworkBurstCanvas burst={burst} primaryEmoji={primaryEmoji} onComplete={onComplete} />
);
}
return <LocalBurstCanvas burst={burst} primaryEmoji={primaryEmoji} onComplete={onComplete} />;
@@ -89,7 +96,7 @@ function FireworkBurstCanvas({ burst, primaryEmoji, onComplete }: BurstCanvasPro
const origin = {
x: glyph ? glyph.x : burst.origin.x,
y: glyph ? glyph.y : burst.origin.y,
maskRadius: glyph ? glyph.size * 0.5 : burst.origin.maskRadius ?? 36,
maskRadius: glyph ? glyph.size * 0.5 : (burst.origin.maskRadius ?? 36),
};
// Keep morph heroes glued to the message emoji; only clamp undirected fireworks.
@@ -105,7 +112,7 @@ function FireworkBurstCanvas({ burst, primaryEmoji, onComplete }: BurstCanvasPro
primaryEmoji,
profile,
performance.now(),
glyph?.size
glyph?.size,
);
const revealJumbo = () => {
@@ -188,7 +195,14 @@ function FireworkBurstCanvas({ burst, primaryEmoji, onComplete }: BurstCanvasPro
// Extra Things: allow Strict Mode remount to start a fresh burst.
spawnedRef.current = false;
};
}, [burst.id, burst.origin.maskRadius, burst.origin.x, burst.origin.y, burst.targetEventId, primaryEmoji]);
}, [
burst.id,
burst.origin.maskRadius,
burst.origin.x,
burst.origin.y,
burst.targetEventId,
primaryEmoji,
]);
return createPortal(
<div
@@ -213,7 +227,7 @@ function FireworkBurstCanvas({ burst, primaryEmoji, onComplete }: BurstCanvasPro
}}
/>
</div>,
document.body
document.body,
);
}
@@ -234,7 +248,7 @@ function LocalBurstCanvas({ burst, primaryEmoji, onComplete }: BurstCanvasProps)
y: canvasSize / 2,
maskRadius: burst.origin.maskRadius ?? 36,
}),
[burst.origin.maskRadius, canvasSize]
[burst.origin.maskRadius, canvasSize],
);
const updateLayerPosition = () => {
@@ -370,6 +384,6 @@ function LocalBurstCanvas({ burst, primaryEmoji, onComplete }: BurstCanvasProps)
}}
/>
</div>,
document.body
document.body,
);
}