revert(gacha): restore the original pack tear and drop motion

Only the card rising out of the pack keeps its exponential easing; the scripted tear and the pack falling away move as pack-cards drew them.
This commit is contained in:
tiennm99 committed 2026-10-01 23:22:51 +07:00
1 parent 76c96464a8
commit 949e5e57ec
3 files changed
+2 -48

No files matched your search

-13
View File
@@ -46,19 +46,6 @@ describe('gacha wish plan', () => {
expect(dragEnd + 2).toBeLessThan(gachaTotalSeconds);
});
test('the drag eases exponentially in and out across the seal', () => {
const {dragStart, dragEnd} = wishTimeline;
const x = (/** @type {number} */ fraction) =>
getDragPointer(dragStart + (dragEnd - dragStart) * fraction)?.x ?? NaN;
expect(x(0)).toBeCloseTo(0.08);
expect(x(1)).toBeCloseTo(0.98);
expect(x(0.5)).toBeCloseTo(0.53);
// Slow at both ends, fast through the middle.
expect(x(0.2) - x(0)).toBeLessThan(0.01);
expect(x(1) - x(0.8)).toBeLessThan(0.01);
expect(x(0.6) - x(0.4)).toBeGreaterThan(0.6);
});
test('page requests map to the page directory and the installed package', () => {
expect(resolveWishAsset(`${wishOrigin}/index.html`, roots)).toEqual({
file: path.join(roots.page, 'index.html'),