@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,QAkBtE"}
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
- for (const row of rowPool.getRows()) {
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
- row.el.style.transition = "opacity 300ms ease, transform 300ms ease";
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 rowPool.getRows()) {
20
+ for (const row of rows) {
13
21
  row.el.style.removeProperty("transition");
14
22
  row.el.style.removeProperty("opacity");
15
23
  }
16
- }, 350);
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,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;QACpC,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,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC,UAAU,GAAG,0CAA0C,CAAC;QACrE,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,CAAC,GAAG,EAAE;QACd,KAAK,MAAM,GAAG,IAAI,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;YACpC,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,EAAE,GAAG,CAAC,CAAC;AACV,CAAC"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polygrid/core",
3
- "version": "1.0.492",
3
+ "version": "1.0.493",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",