@polygrid/core 1.0.492 → 1.0.493
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"play-filter-animation.d.ts","sourceRoot":"","sources":["../../../../../src/engine/services/animation/methods/play-filter-animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"play-filter-animation.d.ts","sourceRoot":"","sources":["../../../../../src/engine/services/animation/methods/play-filter-animation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAErD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,QAgCtE"}
|
|
@@ -1,18 +1,26 @@
|
|
|
1
1
|
export function playFilterAnimation(rowPool, rowHeight) {
|
|
2
|
-
|
|
2
|
+
const rows = rowPool.getRows();
|
|
3
|
+
for (let i = 0; i < rows.length; i++) {
|
|
4
|
+
const row = rows[i];
|
|
3
5
|
if (row.el.style.display === "none")
|
|
4
6
|
continue;
|
|
5
7
|
const rowIndex = row.currentIndex;
|
|
6
8
|
const finalY = rowIndex * rowHeight;
|
|
7
|
-
|
|
9
|
+
// stagger amount
|
|
10
|
+
const delay = i * 10; // 10ms per row
|
|
11
|
+
row.el.style.transition = `
|
|
12
|
+
opacity 300ms ease ${delay}ms,
|
|
13
|
+
transform 300ms ease ${delay}ms
|
|
14
|
+
`;
|
|
8
15
|
row.el.style.opacity = "1";
|
|
9
16
|
row.el.style.transform = `translateY(${finalY}px)`;
|
|
10
17
|
}
|
|
18
|
+
// cleanup
|
|
11
19
|
setTimeout(() => {
|
|
12
|
-
for (const row of
|
|
20
|
+
for (const row of rows) {
|
|
13
21
|
row.el.style.removeProperty("transition");
|
|
14
22
|
row.el.style.removeProperty("opacity");
|
|
15
23
|
}
|
|
16
|
-
},
|
|
24
|
+
}, 300 + rows.length * 20 + 50);
|
|
17
25
|
}
|
|
18
26
|
//# sourceMappingURL=play-filter-animation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"play-filter-animation.js","sourceRoot":"","sources":["../../../../../src/engine/services/animation/methods/play-filter-animation.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,SAAiB;IACrE,
|
|
1
|
+
{"version":3,"file":"play-filter-animation.js","sourceRoot":"","sources":["../../../../../src/engine/services/animation/methods/play-filter-animation.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,SAAiB;IACrE,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAE/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAE,CAAC;QACrB,IAAI,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,MAAM;YAAE,SAAS;QAE9C,MAAM,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC;QAClC,MAAM,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;QAEpC,iBAAiB;QACjB,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,eAAe;QAErC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,GAAG;2BACH,KAAK;6BACH,KAAK;KAC7B,CAAC;QAEF,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;QAC3B,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,GAAG,cAAc,MAAM,KAAK,CAAC;IACrD,CAAC;IAED,UAAU;IACV,UAAU,CACR,GAAG,EAAE;QACH,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;YAC1C,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,EACD,GAAG,GAAG,IAAI,CAAC,MAAM,GAAG,EAAE,GAAG,EAAE,CAC5B,CAAC;AACJ,CAAC"}
|