MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getItemHeight

Method getItemHeight

src/utils/VirtualScroller.ts:251–253  ·  view source on GitHub ↗

* Get the height of an item (measured or estimated)

(index: number)

Source from the content-addressed store, hash-verified

249 * Get the height of an item (measured or estimated)
250 */
251 private getItemHeight(index: number): number {
252 return this.itemHeights.get(index) ?? this.estimatedHeight;
253 }
254
255 /**
256 * Get the position (top offset) of an item

Callers 2

rebuildPositionCacheMethod · 0.95
updateVisibleRangeMethod · 0.95

Calls 1

getMethod · 0.65

Tested by

no test coverage detected