@kylincloud/flamegraph 0.36.1 → 0.36.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kylincloud/flamegraph",
3
- "version": "0.36.1",
3
+ "version": "0.36.2",
4
4
  "description": "KylinCloud flamegraph renderer (Pyroscope-based)",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.node.cjs.js",
@@ -746,8 +746,8 @@ function Table({
746
746
  },
747
747
  } satisfies ProfilerTableWorkerRequest);
748
748
  } else {
749
- setWorkerReady(false);
750
- setVisibleRowData([]);
749
+ // Keep current table visible while worker recomputes filtered/sorted rows.
750
+ // This avoids flicker on every keystroke in the search box.
751
751
  worker.postMessage({
752
752
  type: 'update',
753
753
  payload,
@@ -46,6 +46,8 @@ pyro-flamegraph {
46
46
  overflow-y: auto;
47
47
  position: relative;
48
48
  max-height: var(--kylin-flamegraph-table-max-height, 1000px);
49
+ /* Avoid browser scroll anchoring jumps during async virtual row updates */
50
+ overflow-anchor: none;
49
51
  }
50
52
 
51
53
  .flamegraph-table-wrapper--double .flamegraph-table-scroll table {
@@ -62,6 +64,11 @@ pyro-flamegraph {
62
64
 
63
65
  .flamegraph-table-wrapper--double .flamegraph-table-scroll tbody {
64
66
  display: table-row-group;
67
+ overflow-anchor: none;
68
+ }
69
+
70
+ .flamegraph-table-wrapper--double .flamegraph-table-scroll tr {
71
+ overflow-anchor: none;
65
72
  }
66
73
 
67
74
  /* 整行都有底色,避免列间缝隙透出内容 */