@aiquants/directory-tree 3.1.3 → 3.1.4

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":"DirectoryTree.d.ts","sourceRoot":"","sources":["../../src/DirectoryTree.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAuB,oBAAoB,EAAyF,MAAM,sBAAsB,CAAA;AAGvK,OAAO,KAAK,EAA2C,kBAAkB,EAAqC,gBAAgB,EAAiB,gBAAgB,EAAmB,MAAM,YAAY,CAAA;AA+IpM;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,gBAAgB,EAAE,EAAE,aAAa,MAAM,EAAE,EAAE,aAAa,MAAM,EAAE,EAAE,cAAc,MAAM,EAAE,eAAe,OAAO,EAAE,oBAAoB,MAAM,KAAG,gBA4IzL,CAAA;AA8ND;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,6kBA4B3B,kBAAkB,gCA2ZpB,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
1
+ {"version":3,"file":"DirectoryTree.d.ts","sourceRoot":"","sources":["../../src/DirectoryTree.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAuB,oBAAoB,EAAyF,MAAM,sBAAsB,CAAA;AAIvK,OAAO,KAAK,EAA2C,kBAAkB,EAAqC,gBAAgB,EAAiB,gBAAgB,EAAmB,MAAM,YAAY,CAAA;AA+IpM;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,gBAAgB,EAAE,EAAE,aAAa,MAAM,EAAE,EAAE,aAAa,MAAM,EAAE,EAAE,cAAc,MAAM,EAAE,eAAe,OAAO,EAAE,oBAAoB,MAAM,KAAG,gBA4IzL,CAAA;AA8ND;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,6kBA4B3B,kBAAkB,gCAgdpB,CAAA;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Pure helpers for preserving the visual scroll anchor across row-list mutations.
3
+ * 行リストの変異を跨いで視覚的スクロールアンカーを保持するための純関数ヘルパーモジュール。
4
+ *
5
+ * ストリーミング追記などで viewport より上に行が挿入されると、ピクセル位置を維持する
6
+ * 通常のスクロールでは表示内容が下へずれる。本モジュールは「変更前の先頭可視行」を
7
+ * アンカーとして捕捉し、変更後の行リスト内で同じ行が同じ画面位置に来るスクロール量を
8
+ * 算出する。副作用を持たないため単体テストで全経路を検証できる。
9
+ */
10
+ /** アンカー捕捉に必要な最小の行形状 (構造的部分型) */
11
+ export type AnchorableItem = {
12
+ entry: {
13
+ absolutePath: string;
14
+ };
15
+ };
16
+ /** 捕捉されたスクロールアンカー */
17
+ export type ScrollAnchor = {
18
+ /** 変更前の先頭可視行のパス */
19
+ path: string;
20
+ /** 行上端から viewport 上端までのピクセル差 (行の途中まで見えている量) */
21
+ offsetInViewport: number;
22
+ };
23
+ /**
24
+ * Captures the first visible row as a scroll anchor (null when anchoring is unnecessary).
25
+ * 先頭可視行をスクロールアンカーとして捕捉する処理 (アンカー不要時は null)。
26
+ *
27
+ * scrollPosition が 0 以下 (最上部) の場合は「先頭に張り付いて新着を眺める」挙動が
28
+ * 自然なため、意図的にアンカーしない。
29
+ */
30
+ export declare const captureScrollAnchor: (items: ReadonlyArray<AnchorableItem>, offsets: number[], scrollPosition: number) => ScrollAnchor | null;
31
+ /**
32
+ * Resolves the scroll position that keeps the anchored row visually stationary in the new list.
33
+ * 新しい行リスト内でアンカー行を同じ画面位置に保つスクロール量を解決する処理。
34
+ *
35
+ * アンカー行が新リストに存在しない場合 (折りたたみ・フィルタで消えた等) は null を返し、
36
+ * 呼び出し側は補正を行わない (ピクセル位置維持のフォールバック)。
37
+ */
38
+ export declare const resolveAnchorScroll: (anchor: ScrollAnchor, items: ReadonlyArray<AnchorableItem>, offsets: number[]) => number | null;
39
+ //# sourceMappingURL=scrollAnchor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollAnchor.d.ts","sourceRoot":"","sources":["../../src/scrollAnchor.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE;QAAE,YAAY,EAAE,MAAM,CAAA;KAAE,CAAA;CAClC,CAAA;AAED,qBAAqB;AACrB,MAAM,MAAM,YAAY,GAAG;IACvB,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,+CAA+C;IAC/C,gBAAgB,EAAE,MAAM,CAAA;CAC3B,CAAA;AAwBD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,aAAa,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,EAAE,gBAAgB,MAAM,KAAG,YAAY,GAAG,IAapI,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,QAAQ,YAAY,EAAE,OAAO,aAAa,CAAC,cAAc,CAAC,EAAE,SAAS,MAAM,EAAE,KAAG,MAAM,GAAG,IAW5H,CAAA"}
@@ -127,6 +127,15 @@ export type DirectoryTreeClickEvent = {
127
127
  export type DirectoryTreeVirtualScrollOptions = Omit<ComponentProps<typeof VirtualScroll>, "itemCount" | "getItem" | "getItemHeight" | "children" | "viewportSize"> & {
128
128
  /** Override for viewport height. / 内部計測をスキップするための任意の固定ビューポート高さ。 */
129
129
  viewportHeightOverride?: number;
130
+ /**
131
+ * Keeps the first visible row visually stationary when the row list mutates
132
+ * (e.g. streaming insertions above the viewport). Applies only while scrolled
133
+ * away from the top; at the top the list stays top-anchored as usual.
134
+ *
135
+ * 行リストの変異時 (ストリーミング追記など) に先頭可視行を画面上で静止させる。
136
+ * 最上部 (scroll 0) では通常どおり先頭アンカーのままとし、スクロール中のみ作用する。
137
+ */
138
+ preserveScrollAnchor?: boolean;
130
139
  };
131
140
  /**
132
141
  * A single column definition for the TreeGrid (columns) mode.
@@ -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AAe,EAAE,EAAE,CAAA;IACnC,YAAY,EAAE,aAAa,EAAE,EAAE,CAAA;IAC/B,UAAU,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,cAAc,EAAE,MAAM,CAAA;IACtB,cAAc,EAAE,MAAM,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;CAC3B,CAAA"}
@@ -1,3 +1,3 @@
1
1
  /*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
2
2
  /*! @aiquants/directory-tree standalone CSS — 非 Tailwind ホスト専用。ホストの Tailwind ビルドと混在させないこと */
3
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--spacing:.25rem;--font-weight-medium:500;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer base;@layer components{@layer components{.aqvs-scroll-pane{display:flex;position:relative}.aqvs-scroll-pane-content{flex:1;height:100%;position:relative;overflow:hidden}.aqvs-tap-scroll-circle{touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;transition-property:transform;transition-duration:.1s;transition-timing-function:cubic-bezier(0,0,.2,1);display:flex;position:relative}.aqvs-tap-scroll-circle-visual-outer{border-radius:9999px;position:absolute;inset:0}.aqvs-tap-scroll-circle-gradient{background:linear-gradient(to bottom right,#1d4ed899,#60a5fa8c,#bfdbfe66);border-width:1px;border-color:#fff6;border-radius:9999px;position:absolute;inset:0;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.aqvs-tap-scroll-circle-inner{border-radius:9999px;position:absolute;inset:18%}.aqvs-sample-visual-rod{background-color:#ffffffd9;border-width:1px;border-color:#ffffff80;border-radius:9999px;position:absolute;top:50%;left:50%}.aqvs-sample-visual-pupil{background-color:#fffc;border-radius:9999px;position:absolute;top:50%;left:50%}.aqvs-sample-visual-highlight{background-color:#ffffff80;border-radius:9999px;position:absolute;top:50%;left:50%}.aqvs-scrollbar{z-index:50;cursor:default;-webkit-user-select:none;user-select:none;touch-action:none;background-color:#fff;position:relative}.aqvs-scrollbar-horizontal{flex-direction:row;align-items:stretch;display:flex}.aqvs-scrollbar-vertical{flex-direction:column;align-items:stretch;display:flex}.aqvs-scrollbar-tap-circle-wrapper{pointer-events:auto;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.aqvs-scrollbar-arrow-button{color:#313131;background-color:#e0e0e0;justify-content:center;align-items:center;font-size:.75rem;line-height:1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:flex}.aqvs-scrollbar-arrow-button:focus{outline-offset:2px;outline:2px solid #0000}.aqvs-scrollbar-arrow-button:focus-visible{outline-offset:1px;outline:2px solid #60a5fa}.aqvs-scrollbar-arrow-button:disabled{cursor:not-allowed;opacity:.5}.aqvs-scrollbar-arrow-button:enabled:hover{background-color:#d4d4d4}.aqvs-scrollbar-track{background-color:#f5f5f5;flex:1;position:relative}.aqvs-scrollbar-overlay{pointer-events:none;position:absolute;inset:0}.aqvs-scrollbar-thumb-wrapper{touch-action:none;position:absolute}.aqvs-scrollbar-thumb{transform-origin:50%;background-color:#7f7f7f;transition:transform 80ms ease-out;position:absolute}.aqvs-scrollbar-thumb[data-thumb-state=disabled]{transition:none;transform:none}.aqvs-scrollbar-thumb[data-thumb-state=hover]{background-color:#5f5f5f}.aqvs-scrollbar-thumb[data-thumb-state=dragging]{background-color:#4f4f4f;transition:transform 60ms ease-out}.aqvs-scrollbar-thumb-horizontal{inset:1.5px 0}.aqvs-scrollbar-thumb-horizontal[data-thumb-state=hover]{top:-.5px;bottom:-.5px;transform:scaleY(1.06)}.aqvs-scrollbar-thumb-horizontal[data-thumb-state=dragging]{top:-.5px;bottom:-.5px;transform:scaleY(1.12)}.aqvs-scrollbar-thumb-vertical{inset:0 1.5px}.aqvs-scrollbar-thumb-vertical[data-thumb-state=hover]{left:-.5px;right:-.5px;transform:scaleX(1.06)}.aqvs-scrollbar-thumb-vertical[data-thumb-state=dragging]{left:-.5px;right:-.5px;transform:scaleX(1.12)}.aqvs-scroll-to-edge-button{pointer-events:auto;color:#fff;text-transform:uppercase;letter-spacing:.05em;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#1f2937cc;border-radius:9999px;padding:.25rem 3rem;font-size:10px;font-weight:500;transition-property:transform,background-color;transition-duration:.15s;transform:none;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.aqvs-scroll-to-edge-button:hover{background-color:#374151}.aqvs-scroll-to-edge-button:active{transform:scale(.95)}.aqvs-scroll-to-edge-overlay{pointer-events:none;z-index:10;transition-property:opacity;transition-duration:.5s;position:absolute;inset:0}.aqvs-scroll-to-edge-overlay[data-visible=true]{opacity:1}.aqvs-scroll-to-edge-overlay[data-visible=false]{opacity:0}.aqvs-scroll-to-edge-button-container{justify-content:center;display:flex;position:absolute;left:0;right:0}.aqvs-scroll-to-edge-button-container-top{top:.5rem}.aqvs-scroll-to-edge-button-container-bottom{bottom:.5rem}.aqvs-no-items-container{width:100%;position:absolute;top:0}.aqvs-no-items-text{text-align:center;color:#6b7280}.aqvs-item-container,.aqvs-bottom-inset,.aqvs-items-wrapper{width:100%;position:absolute}}.dt-grid{flex-direction:column;display:flex;position:relative}.dt-grid-body{flex:1;min-height:0;position:relative}.dt-grid-header,.dt-grid-footer,.dt-grid-row,.dt-grid-hscrollbar-row{align-items:stretch;display:flex}.dt-grid-name-cell,.dt-grid-name-header,.dt-grid-name-footer{z-index:1;flex-shrink:0;align-items:center;display:flex;position:relative;overflow:hidden}.dt-grid-numeric-viewport{flex:1;position:relative;overflow:hidden}.dt-grid-numeric-track{transform:translateX(calc(-1 * var(--dt-hscroll,0px)));will-change:transform;display:grid}.dt-grid-cell{white-space:nowrap;text-overflow:ellipsis;align-items:center;padding:0 8px;display:flex;overflow:hidden}.dt-grid-cell--right{text-align:right;justify-content:flex-end}.dt-grid-cell--center{text-align:center;justify-content:center}.dt-grid-name-label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dt-grid-scrollbar-spacer{flex-shrink:0}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.ml-1{margin-left:calc(var(--spacing) * 1)}.flex{display:flex}.grid{display:grid}.inline{display:inline}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-full{height:100%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.flex-shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.bg-blue-400\/10{background-color:#54a2ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-400\/10{background-color:color-mix(in oklab, var(--color-blue-400) 10%, transparent)}}.bg-blue-400\/20{background-color:#54a2ff33}@supports (color:color-mix(in lab, red, red)){.bg-blue-400\/20{background-color:color-mix(in oklab, var(--color-blue-400) 20%, transparent)}}.px-1{padding-inline:calc(var(--spacing) * 1)}.pr-\[3px\]{padding-right:3px}.pb-\[5px\]{padding-bottom:5px}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_rgba\(59\,130\,246\,0\.3\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#3b82f64d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-gray-400\/15:hover{background-color:#99a1af26}@supports (color:color-mix(in lab, red, red)){.hover\:bg-gray-400\/15:hover{background-color:color-mix(in oklab, var(--color-gray-400) 15%, transparent)}}}.dark\:bg-blue-400\/15:where(.dark,.dark *){background-color:#54a2ff26}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-400\/15:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-blue-400) 15%, transparent)}}.dark\:bg-blue-400\/25:where(.dark,.dark *){background-color:#54a2ff40}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-400\/25:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-blue-400) 25%, transparent)}}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:shadow-\[0_0_0_1px_rgba\(96\,165\,250\,0\.4\)\]:where(.dark,.dark *){--tw-shadow:0 0 0 1px var(--tw-shadow-color,#60a5fa66);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.dark\:hover\:bg-gray-200\/10:where(.dark,.dark *):hover{background-color:#e5e7eb1a}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-gray-200\/10:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--color-gray-200) 10%, transparent)}}}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}
3
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial}}}@layer theme{:root,:host{--color-blue-300:oklch(80.9% .105 251.813);--color-blue-400:oklch(70.7% .165 254.624);--color-blue-700:oklch(48.8% .243 264.376);--color-blue-800:oklch(42.4% .199 265.638);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--spacing:.25rem;--font-weight-medium:500;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer base;@layer components{@layer components{.aqvs-scroll-pane{display:flex;position:relative}.aqvs-scroll-pane-content{flex:1;height:100%;position:relative;overflow:hidden}.aqvs-tap-scroll-circle{touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;transition-property:transform;transition-duration:.1s;transition-timing-function:cubic-bezier(0,0,.2,1);display:flex;position:relative}.aqvs-tap-scroll-circle-visual-outer{border-radius:9999px;position:absolute;inset:0}.aqvs-tap-scroll-circle-gradient{background:linear-gradient(to bottom right,#1d4ed899,#60a5fa8c,#bfdbfe66);border-width:1px;border-color:#fff6;border-radius:9999px;position:absolute;inset:0;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.aqvs-tap-scroll-circle-inner{border-radius:9999px;position:absolute;inset:18%}.aqvs-sample-visual-pupil{background-color:#ffffffd9;border-width:1px;border-color:#ffffff80;border-radius:9999px;position:absolute;top:50%;left:50%}.aqvs-sample-visual-highlight{background-color:#fffc;border-radius:9999px;position:absolute;top:50%;left:50%}.aqvs-sample-visual-rod{background-color:#ffffff80;border-radius:9999px;position:absolute;top:50%;left:50%}.aqvs-scrollbar{z-index:50;cursor:default;-webkit-user-select:none;user-select:none;touch-action:none;background-color:#fff;position:relative}.aqvs-scrollbar-horizontal{flex-direction:row;align-items:stretch;display:flex}.aqvs-scrollbar-vertical{flex-direction:column;align-items:stretch;display:flex}.aqvs-scrollbar-tap-circle-wrapper{pointer-events:auto;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute}.aqvs-scrollbar-arrow-button{color:#313131;background-color:#e0e0e0;justify-content:center;align-items:center;font-size:.75rem;line-height:1rem;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:flex}.aqvs-scrollbar-arrow-button:focus{outline-offset:2px;outline:2px solid #0000}.aqvs-scrollbar-arrow-button:focus-visible{outline-offset:1px;outline:2px solid #60a5fa}.aqvs-scrollbar-arrow-button:disabled{cursor:not-allowed;opacity:.5}.aqvs-scrollbar-arrow-button:enabled:hover{background-color:#d4d4d4}.aqvs-scrollbar-track{background-color:#f5f5f5;flex:1;position:relative}.aqvs-scrollbar-overlay{pointer-events:none;position:absolute;inset:0}.aqvs-scrollbar-thumb-wrapper{touch-action:none;position:absolute}.aqvs-scrollbar-thumb{transform-origin:50%;background-color:#7f7f7f;transition:transform 80ms ease-out;position:absolute}.aqvs-scrollbar-thumb[data-thumb-state=disabled]{transition:none;transform:none}.aqvs-scrollbar-thumb[data-thumb-state=hover]{background-color:#5f5f5f}.aqvs-scrollbar-thumb[data-thumb-state=dragging]{background-color:#4f4f4f;transition:transform 60ms ease-out}.aqvs-scrollbar-thumb-horizontal{inset:1.5px 0}.aqvs-scrollbar-thumb-horizontal[data-thumb-state=hover]{top:-.5px;bottom:-.5px;transform:scaleY(1.06)}.aqvs-scrollbar-thumb-horizontal[data-thumb-state=dragging]{top:-.5px;bottom:-.5px;transform:scaleY(1.12)}.aqvs-scrollbar-thumb-vertical{inset:0 1.5px}.aqvs-scrollbar-thumb-vertical[data-thumb-state=hover]{left:-.5px;right:-.5px;transform:scaleX(1.06)}.aqvs-scrollbar-thumb-vertical[data-thumb-state=dragging]{left:-.5px;right:-.5px;transform:scaleX(1.12)}.aqvs-scroll-to-edge-button{pointer-events:auto;color:#fff;text-transform:uppercase;letter-spacing:.05em;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background-color:#1f2937cc;border-radius:9999px;padding:.25rem 3rem;font-size:10px;font-weight:500;transition-property:transform,background-color;transition-duration:.15s;transform:none;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.aqvs-scroll-to-edge-button:hover{background-color:#374151}.aqvs-scroll-to-edge-button:active{transform:scale(.95)}.aqvs-scroll-to-edge-overlay{pointer-events:none;z-index:10;transition-property:opacity;transition-duration:.5s;position:absolute;inset:0}.aqvs-scroll-to-edge-overlay[data-visible=true]{opacity:1}.aqvs-scroll-to-edge-overlay[data-visible=false]{opacity:0}.aqvs-scroll-to-edge-button-container{justify-content:center;display:flex;position:absolute;left:0;right:0}.aqvs-scroll-to-edge-button-container-top{top:.5rem}.aqvs-scroll-to-edge-button-container-bottom{bottom:.5rem}.aqvs-no-items-container{width:100%;position:absolute;top:0}.aqvs-no-items-text{text-align:center;color:#6b7280}.aqvs-item-container,.aqvs-bottom-inset,.aqvs-items-wrapper{width:100%;position:absolute}}.dt-grid{flex-direction:column;display:flex;position:relative}.dt-grid-body{flex:1;min-height:0;position:relative}.dt-grid-header,.dt-grid-footer,.dt-grid-row,.dt-grid-hscrollbar-row{align-items:stretch;display:flex}.dt-grid-name-cell,.dt-grid-name-header,.dt-grid-name-footer{z-index:1;flex-shrink:0;align-items:center;display:flex;position:relative;overflow:hidden}.dt-grid-numeric-viewport{flex:1;position:relative;overflow:hidden}.dt-grid-numeric-track{transform:translateX(calc(-1 * var(--dt-hscroll,0px)));will-change:transform;display:grid}.dt-grid-cell{white-space:nowrap;text-overflow:ellipsis;align-items:center;padding:0 8px;display:flex;overflow:hidden}.dt-grid-cell--right{text-align:right;justify-content:flex-end}.dt-grid-cell--center{text-align:center;justify-content:center}.dt-grid-name-label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.dt-grid-scrollbar-spacer{flex-shrink:0}}@layer utilities{.pointer-events-none{pointer-events:none}.collapse{visibility:collapse}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.inset-0{inset:calc(var(--spacing) * 0)}.top-0{top:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-0{z-index:0}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.ml-1{margin-left:calc(var(--spacing) * 1)}.flex{display:flex}.grid{display:grid}.inline{display:inline}.table{display:table}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-full{height:100%}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.flex-shrink-0{flex-shrink:0}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.justify-center{justify-content:center}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.bg-blue-400\/10{background-color:#54a2ff1a}@supports (color:color-mix(in lab, red, red)){.bg-blue-400\/10{background-color:color-mix(in oklab, var(--color-blue-400) 10%, transparent)}}.bg-blue-400\/20{background-color:#54a2ff33}@supports (color:color-mix(in lab, red, red)){.bg-blue-400\/20{background-color:color-mix(in oklab, var(--color-blue-400) 20%, transparent)}}.px-1{padding-inline:calc(var(--spacing) * 1)}.pr-\[3px\]{padding-right:3px}.pb-\[5px\]{padding-bottom:5px}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-blue-700{color:var(--color-blue-700)}.text-blue-800{color:var(--color-blue-800)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.opacity-70{opacity:.7}.shadow-\[0_0_0_1px_rgba\(59\,130\,246\,0\.3\)\]{--tw-shadow:0 0 0 1px var(--tw-shadow-color,#3b82f64d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-gray-400\/15:hover{background-color:#99a1af26}@supports (color:color-mix(in lab, red, red)){.hover\:bg-gray-400\/15:hover{background-color:color-mix(in oklab, var(--color-gray-400) 15%, transparent)}}}.dark\:bg-blue-400\/15:where(.dark,.dark *){background-color:#54a2ff26}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-400\/15:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-blue-400) 15%, transparent)}}.dark\:bg-blue-400\/25:where(.dark,.dark *){background-color:#54a2ff40}@supports (color:color-mix(in lab, red, red)){.dark\:bg-blue-400\/25:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-blue-400) 25%, transparent)}}.dark\:text-blue-300:where(.dark,.dark *){color:var(--color-blue-300)}.dark\:text-blue-400:where(.dark,.dark *){color:var(--color-blue-400)}.dark\:text-gray-200:where(.dark,.dark *){color:var(--color-gray-200)}.dark\:text-gray-300:where(.dark,.dark *){color:var(--color-gray-300)}.dark\:text-gray-400:where(.dark,.dark *){color:var(--color-gray-400)}.dark\:shadow-\[0_0_0_1px_rgba\(96\,165\,250\,0\.4\)\]:where(.dark,.dark *){--tw-shadow:0 0 0 1px var(--tw-shadow-color,#60a5fa66);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}@media (hover:hover){.dark\:hover\:bg-gray-200\/10:where(.dark,.dark *):hover{background-color:#e5e7eb1a}@supports (color:color-mix(in lab, red, red)){.dark\:hover\:bg-gray-200\/10:where(.dark,.dark *):hover{background-color:color-mix(in oklab, var(--color-gray-200) 10%, transparent)}}}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiquants/directory-tree",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "High-performance directory tree component for React with virtual scrolling and file selection",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -33,7 +33,7 @@
33
33
  "peerDependencies": {
34
34
  "react": "^19.2.7",
35
35
  "react-dom": "^19.2.7",
36
- "@aiquants/virtualscroll": "^1.19.3"
36
+ "@aiquants/virtualscroll": "^1.22.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@tailwindcss/cli": "^4.1.18",
@@ -54,7 +54,7 @@
54
54
  "vite": "^7.2.7",
55
55
  "vite-plugin-dts": "^4.5.4",
56
56
  "vitest": "^3.2.4",
57
- "@aiquants/virtualscroll": "1.19.3"
57
+ "@aiquants/virtualscroll": "1.22.0"
58
58
  },
59
59
  "keywords": [
60
60
  "react",
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Version | Date | Author | Reviewer | Approver | Summary of Changes |
6
6
  | :--- | :--- | :--- | :--- | :--- | :--- |
7
+ | 3.1.0 | 2026-07-31 | Claude Opus 5 | | | Add opt-in `virtualScroll.preserveScrollAnchor`: when the row list mutates (e.g. streaming insertions above the viewport), the first visible row is kept visually stationary via a pre-paint (`useLayoutEffect`) scroll correction. Pure helpers `captureScrollAnchor` / `resolveAnchorScroll` live in `scrollAnchor.ts` (unit-tested). The anchor is captured from the **live pane position** (`getScrollPosition()`, inset-adjusted) rather than the RAF-throttled `onScroll` mirror, so corrections landing mid-scroll do not rubber-band by the notification lag; the handle's clamped return value is adopted, and the component's own `scrollPosition` state is updated **in the same pre-paint flush** so the tree-line canvas / expand glyphs never misalign from the rows. No correction at the top of the list (scroll 0) and pixel-position fallback when the anchored row vanished. Known trade-off: the programmatic correction goes through the ScrollPane handle, which stops an in-progress pointer-drag inertia fling (same as the pre-existing compensation path). Also removed a leftover dead `isEmpty` local. |
7
8
  | 3.0.1 | 2026-07-07 | Antigravity | | | Fix: `columns[0].className` is now correctly applied to the name column cells in the header and footer (TreeGrid mode), ensuring consistency with body rows and data columns. |
8
9
  | 3.0.0 | 2026-07-07 | Claude Opus 4.8 | | | Add TreeGrid (columns) mode via the optional `grid` prop (`DirectoryTreeGrid` / `DirectoryTreeColumn`). The name/tree column is frozen on the left (indent + connector lines confined there); the remaining columns render as a vertically-aligned grid with an aligned column header, an optional footer that aggregates over **all** entries (collapsed subtrees included), and a horizontally scrollable numeric region (the name column stays frozen). Grid mode uses `role="treegrid"` / `row` / `gridcell` / `columnheader`. Enabled by a new opt-in `onWheelHorizontal` prop on `@aiquants/virtualscroll` (axis-aware wheel). `grid` and each `render` / `footer` must be stable references. Note: connector lines are rendered on a `<canvas>` (this document previously described them as a single SVG component — corrected here). |
9
10
  | 2.2.0 | 2026-07-06 | Claude Opus 4.8 | | | Add `visual.itemHeight` (`number \| ((entry, index) => number)`, default 20) to make row height configurable. Variable-height rows are supported: the tree connector geometry and virtual-scroll range now use cumulative per-row offsets instead of a uniform pitch. Invalid values (`NaN` / `Infinity` / `0` / negative) fall back to 20px. |
@@ -131,7 +132,7 @@ The `DirectoryTree` component accepts the following props:
131
132
  | `expansion` | `object` | Yes | - | Configuration for tree expansion state and behavior. ツリーの展開状態と動作の設定。 |
132
133
  | `selection` | `object` | Yes | - | Configuration for item selection. アイテム選択の設定。 |
133
134
  | `visual` | `object` | No | - | Visual customization options. 表示のカスタマイズオプション。 |
134
- | `virtualScroll` | `DirectoryTreeVirtualScrollOptions` | No | - | Additional options for VirtualScroll integration. VirtualScroll の設定を上書きするオプション。 |
135
+ | `virtualScroll` | `DirectoryTreeVirtualScrollOptions` | No | - | Additional options for VirtualScroll integration. Includes `viewportHeightOverride` and `preserveScrollAnchor` (opt-in, default `false`: keeps the first visible row visually stationary across row-list mutations such as streaming insertions above the viewport; inactive at scroll 0; falls back to pixel-position when the anchored row vanished). VirtualScroll の設定を上書きするオプション。`preserveScrollAnchor` (既定 `false`) を有効化すると、行リスト変異時に先頭可視行を画面上で静止させる (最上部では不作動、アンカー行消失時はピクセル位置維持へフォールバック)。 |
135
136
  | `grid` | `DirectoryTreeGrid` | No | - | TreeGrid (columns) mode. When present, renders a frozen name column + aligned data columns with header/footer and a horizontally scrollable numeric region. See §3.2.4. TreeGrid(列)モード。指定時は凍結名前列+整列データ列を描画する(§3.2.4)。 |
136
137
 
137
138
  #### 3.2.1. `expansion` Configuration
@@ -5,11 +5,12 @@
5
5
  */
6
6
  import { ScrollBar, VirtualScroll, type VirtualScrollHandle, type VirtualScrollRange } from "@aiquants/virtualscroll"
7
7
  import type { CSSProperties, MouseEvent } from "react"
8
- import { Fragment, memo, useCallback, useEffect, useMemo, useRef, useState } from "react"
8
+ import { Fragment, memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react"
9
9
  import { twMerge } from "tailwind-merge"
10
10
  import { DirectoryTreeGridFooterRow, DirectoryTreeGridHeaderRow, DirectoryTreeGridRow } from "./DirectoryTreeGrid.tsx"
11
11
  import { DEFAULT_ITEM_HEIGHT, directoryTreeClasses, EXPAND_GLYPH_SIZE, getFileExtension, INDENT_SIZE, resolveEntryIcon, resolveExpandIcon } from "./entryRendering.tsx"
12
12
  import { buildNumericTemplate, clampHScroll, computeGridMetrics, DEFAULT_GRID_SCROLLBAR_WIDTH, flattenAllEntries } from "./gridUtils.ts"
13
+ import { captureScrollAnchor, resolveAnchorScroll } from "./scrollAnchor.ts"
13
14
  import { TreeLine } from "./TreeLine.tsx"
14
15
  import type { DirectoryEntry, DirectoryEntryItemProps, DirectoryTreeProps, DirectoryTreeVirtualScrollOptions, TreeLineGeometry, TreeLineGlyph, TreeLineItemInfo, TreeLineSegment } from "./types.ts"
15
16
  import { useEntryInteraction } from "./useEntryInteraction.ts"
@@ -587,12 +588,16 @@ export const DirectoryTree = ({
587
588
  viewportHeightOverride,
588
589
  scrollBarOptions,
589
590
  behaviorOptions,
591
+ preserveScrollAnchor = false,
590
592
  }: DirectoryTreeVirtualScrollOptions = virtualScrollOptions ?? {}
591
593
 
592
594
  const [scrollPosition, setScrollPosition] = useState(typeof initialScrollOffset === "number" ? initialScrollOffset : 0)
595
+ // アンカー補正用の最新スクロール位置 (effect の依存に scrollPosition を入れないための鏡)
596
+ const scrollPositionRef = useRef(typeof initialScrollOffset === "number" ? initialScrollOffset : 0)
593
597
 
594
598
  const handleVirtualScroll = useCallback(
595
599
  (position: number, totalHeight: number) => {
600
+ scrollPositionRef.current = position
596
601
  setScrollPosition(position)
597
602
  virtualScrollOnScroll?.(position, totalHeight)
598
603
  },
@@ -766,6 +771,58 @@ export const DirectoryTree = ({
766
771
 
767
772
  const getItem = useCallback((index: number) => virtualItems[index], [virtualItems])
768
773
 
774
+ // 直前レンダーの行リストと累積オフセット (スクロールアンカー補正用)
775
+ const prevAnchorSourceRef = useRef<{ items: VirtualItem[]; offsets: number[] } | null>(null)
776
+
777
+ // 目的: 行リストの変異 (ストリーミング追記・finalize 再構築など) を跨いで、先頭可視行を
778
+ // 画面上で静止させる (viewport より上への挿入によるコンテンツのずれを打ち消す)。
779
+ // useLayoutEffect で描画前に補正するため、ユーザーにはずれが一切見えない。
780
+ // 依存関係: virtualItems / itemOffsets (行リスト変異ごと), preserveScrollAnchor,
781
+ // virtualScrollContentInsets (pane 座標 ↔ 論理座標の換算)。
782
+ // スクロール位置はハンドルから同期読取し、スクロール操作では発火させない。
783
+ // クリーンアップ: 不要 (ref / state 更新のみ)。
784
+ useLayoutEffect(() => {
785
+ const previous = prevAnchorSourceRef.current
786
+ prevAnchorSourceRef.current = { items: virtualItems, offsets: itemOffsets }
787
+
788
+ // アンカー無効・初回レンダー・行リスト同一のいずれかなら補正不要
789
+ if (!preserveScrollAnchor) {
790
+ return
791
+ }
792
+ if (!previous || previous.items === virtualItems) {
793
+ return
794
+ }
795
+
796
+ // スクロール位置は onScroll ミラー (RAF + スロットルで 1〜2 フレーム遅延する) ではなく、
797
+ // ScrollPane ハンドルから同期読取する。アクティブスクロール中にチャンクが着地しても、
798
+ // 実位置基準で補正され「遅延分だけ跳ねる」ラバーバンドが起こらない。
799
+ const pane = virtualScrollRef.current
800
+ const topInset = typeof virtualScrollContentInsets === "number" ? virtualScrollContentInsets : (virtualScrollContentInsets?.top ?? 0)
801
+ const livePanePosition = pane ? pane.getScrollPosition() : scrollPositionRef.current
802
+ const liveLogicalPosition = livePanePosition - topInset
803
+
804
+ // 変更前の先頭可視行を捕捉し、新リスト内の同一行が同じ画面位置に来る量へ補正する
805
+ const anchor = captureScrollAnchor(previous.items, previous.offsets, liveLogicalPosition)
806
+ if (!anchor) {
807
+ return
808
+ }
809
+ const nextLogicalPosition = resolveAnchorScroll(anchor, virtualItems, itemOffsets)
810
+ if (nextLogicalPosition === null) {
811
+ return
812
+ }
813
+ const nextPanePosition = nextLogicalPosition + topInset
814
+ if (Math.abs(nextPanePosition - livePanePosition) < 1) {
815
+ return
816
+ }
817
+
818
+ // ハンドルの返値 (クランプ後の実効位置) をミラーへ採用し、同じ描画前フラッシュで
819
+ // 自コンポーネントの scrollPosition state も更新する。state を遅延させると、
820
+ // ツリーライン canvas と展開グリフが補正量ぶんだけ 1〜2 フレーム行からずれて描画される。
821
+ const appliedPosition = pane?.scrollTo(nextPanePosition) ?? nextPanePosition
822
+ scrollPositionRef.current = appliedPosition
823
+ setScrollPosition(appliedPosition)
824
+ }, [virtualItems, itemOffsets, preserveScrollAnchor, virtualScrollContentInsets])
825
+
769
826
  // ===== TreeGrid (columns) mode derived values =====
770
827
  const gridColumns = grid?.columns
771
828
  // Align the header/footer spacer with the body's vertical scrollbar: default to the actual
@@ -787,8 +844,6 @@ export const DirectoryTree = ({
787
844
  [iconOverrides, showExpandIcons, showDirectoryIcons, showFileIcons, showTreeLines, expandIconSize, highlightStyles],
788
845
  )
789
846
 
790
- const isEmpty = entries.length === 0
791
-
792
847
  // The VirtualScroll element is memoized WITHOUT hscroll in its deps: a horizontal-scroll tick only
793
848
  // updates the container's `--dt-hscroll` variable (the numeric tracks translate via CSS and the
794
849
  // memoized rows are skipped), so the virtualized body is not re-rendered. It still recomputes on
@@ -931,7 +986,6 @@ export const DirectoryTree = ({
931
986
  )
932
987
 
933
988
  if (!(grid && gridMetrics)) {
934
- if (isEmpty) return <div className={containerClasses} style={containerStyle} />
935
989
  return (
936
990
  <div ref={containerRef} className={containerClasses} style={containerStyle} role="tree">
937
991
  {virtualScrollElement}
@@ -947,7 +1001,7 @@ export const DirectoryTree = ({
947
1001
  <div ref={containerRef} className={twMerge(containerClasses, "dt-grid")} style={gridContainerStyle} role="treegrid">
948
1002
  {showHeader && <DirectoryTreeGridHeaderRow columns={grid.columns} numericTemplate={numericTemplate} numericTotal={gridMetrics.numericTotal} nameWidth={gridMetrics.nameWidth} scrollBarWidth={gridScrollBarWidth} className={grid.headerClassName} />}
949
1003
  <div ref={bodyRef} className="dt-grid-body">
950
- {!isEmpty && virtualScrollElement}
1004
+ {virtualScrollElement}
951
1005
  </div>
952
1006
  {maxHScroll > 0 && (
953
1007
  <div className="dt-grid-hscrollbar-row">
@@ -0,0 +1,105 @@
1
+ /**
2
+ * Unit tests for the scroll-anchor pure helpers.
3
+ * スクロールアンカー純関数ヘルパーの単体テスト。
4
+ */
5
+ import { describe, expect, it } from "vitest"
6
+ import { type AnchorableItem, captureScrollAnchor, resolveAnchorScroll } from "./scrollAnchor.ts"
7
+
8
+ /** 均一 28px 行のテストデータを生成する */
9
+ const buildItems = (paths: string[]): { items: AnchorableItem[]; offsets: number[] } => {
10
+ const items = paths.map((path) => ({ entry: { absolutePath: path } }))
11
+ const offsets = new Array<number>(paths.length + 1)
12
+ offsets[0] = 0
13
+ for (let index = 0; index < paths.length; index++) {
14
+ offsets[index + 1] = offsets[index] + 28
15
+ }
16
+ return { items, offsets }
17
+ }
18
+
19
+ describe("captureScrollAnchor", () => {
20
+ it("should return null at the top of the list (natural streaming view)", () => {
21
+ const { items, offsets } = buildItems(["/a", "/b", "/c"])
22
+ expect(captureScrollAnchor(items, offsets, 0)).toBeNull()
23
+ expect(captureScrollAnchor(items, offsets, -5)).toBeNull()
24
+ })
25
+
26
+ it("should return null for an empty list or mismatched offsets", () => {
27
+ expect(captureScrollAnchor([], [0], 100)).toBeNull()
28
+ const { items } = buildItems(["/a"])
29
+ expect(captureScrollAnchor(items, [0], 100)).toBeNull()
30
+ })
31
+
32
+ it("should capture the first visible row with its in-viewport offset", () => {
33
+ const { items, offsets } = buildItems(["/a", "/b", "/c", "/d"])
34
+ // 60px = 行 2 (/c, 上端 56px) の途中 4px まで見えている
35
+ const anchor = captureScrollAnchor(items, offsets, 60)
36
+ expect(anchor).toEqual({ path: "/c", offsetInViewport: 4 })
37
+ })
38
+
39
+ it("should capture a row boundary exactly at its top", () => {
40
+ const { items, offsets } = buildItems(["/a", "/b", "/c"])
41
+ const anchor = captureScrollAnchor(items, offsets, 28)
42
+ expect(anchor).toEqual({ path: "/b", offsetInViewport: 0 })
43
+ })
44
+
45
+ it("should clamp to the last row when scrolled past the end", () => {
46
+ const { items, offsets } = buildItems(["/a", "/b"])
47
+ const anchor = captureScrollAnchor(items, offsets, 999)
48
+ expect(anchor?.path).toBe("/b")
49
+ })
50
+ })
51
+
52
+ describe("resolveAnchorScroll", () => {
53
+ it("should keep the anchored row stationary when rows are inserted above it", () => {
54
+ const before = buildItems(["/a", "/b", "/c", "/d"])
55
+ const anchor = captureScrollAnchor(before.items, before.offsets, 60)
56
+ expect(anchor?.path).toBe("/c")
57
+
58
+ // /c の上に 2 行挿入される (ストリーミング追記を模擬)
59
+ const after = buildItems(["/a", "/x", "/y", "/b", "/c", "/d"])
60
+ const nextScroll = resolveAnchorScroll(anchor as NonNullable<typeof anchor>, after.items, after.offsets)
61
+
62
+ // /c の新しい上端 (4 * 28 = 112) + viewport 内オフセット 4
63
+ expect(nextScroll).toBe(116)
64
+ })
65
+
66
+ it("should return the same position when nothing changed above the anchor", () => {
67
+ const { items, offsets } = buildItems(["/a", "/b", "/c", "/d"])
68
+ const anchor = captureScrollAnchor(items, offsets, 60)
69
+ const nextScroll = resolveAnchorScroll(anchor as NonNullable<typeof anchor>, items, offsets)
70
+ expect(nextScroll).toBe(60)
71
+ })
72
+
73
+ it("should return null when the anchored row no longer exists", () => {
74
+ const before = buildItems(["/a", "/b", "/c"])
75
+ const anchor = captureScrollAnchor(before.items, before.offsets, 60)
76
+ const after = buildItems(["/a", "/b"])
77
+ expect(resolveAnchorScroll(anchor as NonNullable<typeof anchor>, after.items, after.offsets)).toBeNull()
78
+ })
79
+
80
+ it("should never return a negative scroll position", () => {
81
+ const anchor = { path: "/a", offsetInViewport: -10 }
82
+ const after = buildItems(["/a", "/b"])
83
+ expect(resolveAnchorScroll(anchor, after.items, after.offsets)).toBe(0)
84
+ })
85
+
86
+ it("should return null for an empty or mismatched new list", () => {
87
+ const anchor = { path: "/a", offsetInViewport: 0 }
88
+ expect(resolveAnchorScroll(anchor, [], [0])).toBeNull()
89
+ const { items } = buildItems(["/a"])
90
+ expect(resolveAnchorScroll(anchor, items, [0])).toBeNull()
91
+ })
92
+
93
+ it("should keep variable-height rows stationary (non-uniform offsets)", () => {
94
+ // 可変高さ: /a=40, /b=20, /c=60
95
+ const beforeItems: AnchorableItem[] = [{ entry: { absolutePath: "/a" } }, { entry: { absolutePath: "/b" } }, { entry: { absolutePath: "/c" } }]
96
+ const beforeOffsets = [0, 40, 60, 120]
97
+ const anchor = captureScrollAnchor(beforeItems, beforeOffsets, 65)
98
+ expect(anchor).toEqual({ path: "/c", offsetInViewport: 5 })
99
+
100
+ // /c の上に高さ 100 の行が入る
101
+ const afterItems: AnchorableItem[] = [{ entry: { absolutePath: "/a" } }, { entry: { absolutePath: "/x" } }, { entry: { absolutePath: "/b" } }, { entry: { absolutePath: "/c" } }]
102
+ const afterOffsets = [0, 40, 140, 160, 220]
103
+ expect(resolveAnchorScroll(anchor as NonNullable<typeof anchor>, afterItems, afterOffsets)).toBe(165)
104
+ })
105
+ })
@@ -0,0 +1,86 @@
1
+ /**
2
+ * Pure helpers for preserving the visual scroll anchor across row-list mutations.
3
+ * 行リストの変異を跨いで視覚的スクロールアンカーを保持するための純関数ヘルパーモジュール。
4
+ *
5
+ * ストリーミング追記などで viewport より上に行が挿入されると、ピクセル位置を維持する
6
+ * 通常のスクロールでは表示内容が下へずれる。本モジュールは「変更前の先頭可視行」を
7
+ * アンカーとして捕捉し、変更後の行リスト内で同じ行が同じ画面位置に来るスクロール量を
8
+ * 算出する。副作用を持たないため単体テストで全経路を検証できる。
9
+ */
10
+
11
+ /** アンカー捕捉に必要な最小の行形状 (構造的部分型) */
12
+ export type AnchorableItem = {
13
+ entry: { absolutePath: string }
14
+ }
15
+
16
+ /** 捕捉されたスクロールアンカー */
17
+ export type ScrollAnchor = {
18
+ /** 変更前の先頭可視行のパス */
19
+ path: string
20
+ /** 行上端から viewport 上端までのピクセル差 (行の途中まで見えている量) */
21
+ offsetInViewport: number
22
+ }
23
+
24
+ /**
25
+ * Binary-searches a cumulative offset table for the item covering a pixel position.
26
+ * 累積オフセット表を二分探索し、指定ピクセル位置を含むアイテムのインデックスを返す処理。
27
+ */
28
+ const findItemIndexAtOffset = (offsets: number[], position: number): number => {
29
+ const itemCount = offsets.length - 1
30
+ if (itemCount <= 0) return 0
31
+ let low = 0
32
+ let high = itemCount - 1
33
+ let result = 0
34
+ while (low <= high) {
35
+ const mid = (low + high) >>> 1
36
+ if (offsets[mid] <= position) {
37
+ result = mid
38
+ low = mid + 1
39
+ } else {
40
+ high = mid - 1
41
+ }
42
+ }
43
+ return result
44
+ }
45
+
46
+ /**
47
+ * Captures the first visible row as a scroll anchor (null when anchoring is unnecessary).
48
+ * 先頭可視行をスクロールアンカーとして捕捉する処理 (アンカー不要時は null)。
49
+ *
50
+ * scrollPosition が 0 以下 (最上部) の場合は「先頭に張り付いて新着を眺める」挙動が
51
+ * 自然なため、意図的にアンカーしない。
52
+ */
53
+ export const captureScrollAnchor = (items: ReadonlyArray<AnchorableItem>, offsets: number[], scrollPosition: number): ScrollAnchor | null => {
54
+ if (scrollPosition <= 0 || items.length === 0 || offsets.length !== items.length + 1) {
55
+ return null
56
+ }
57
+ const index = findItemIndexAtOffset(offsets, scrollPosition)
58
+ const item = items[index]
59
+ if (!item) {
60
+ return null
61
+ }
62
+ return {
63
+ path: item.entry.absolutePath,
64
+ offsetInViewport: scrollPosition - offsets[index],
65
+ }
66
+ }
67
+
68
+ /**
69
+ * Resolves the scroll position that keeps the anchored row visually stationary in the new list.
70
+ * 新しい行リスト内でアンカー行を同じ画面位置に保つスクロール量を解決する処理。
71
+ *
72
+ * アンカー行が新リストに存在しない場合 (折りたたみ・フィルタで消えた等) は null を返し、
73
+ * 呼び出し側は補正を行わない (ピクセル位置維持のフォールバック)。
74
+ */
75
+ export const resolveAnchorScroll = (anchor: ScrollAnchor, items: ReadonlyArray<AnchorableItem>, offsets: number[]): number | null => {
76
+ if (items.length === 0 || offsets.length !== items.length + 1) {
77
+ return null
78
+ }
79
+ // パス一致検索は O(n) だが、呼び出し頻度はスナップショット到達時のみ (スロットル済) のため許容
80
+ for (let index = 0; index < items.length; index++) {
81
+ if (items[index].entry.absolutePath === anchor.path) {
82
+ return Math.max(0, offsets[index] + anchor.offsetInViewport)
83
+ }
84
+ }
85
+ return null
86
+ }
package/src/types.ts CHANGED
@@ -140,6 +140,15 @@ export type DirectoryTreeClickEvent = {
140
140
  export type DirectoryTreeVirtualScrollOptions = Omit<ComponentProps<typeof VirtualScroll>, "itemCount" | "getItem" | "getItemHeight" | "children" | "viewportSize"> & {
141
141
  /** Override for viewport height. / 内部計測をスキップするための任意の固定ビューポート高さ。 */
142
142
  viewportHeightOverride?: number
143
+ /**
144
+ * Keeps the first visible row visually stationary when the row list mutates
145
+ * (e.g. streaming insertions above the viewport). Applies only while scrolled
146
+ * away from the top; at the top the list stays top-anchored as usual.
147
+ *
148
+ * 行リストの変異時 (ストリーミング追記など) に先頭可視行を画面上で静止させる。
149
+ * 最上部 (scroll 0) では通常どおり先頭アンカーのままとし、スクロール中のみ作用する。
150
+ */
151
+ preserveScrollAnchor?: boolean
143
152
  }
144
153
 
145
154
  /**