window-core 0.1.0

Event-driven virtual window engine for large, dynamic lists.
Documentation
  • Coverage
  • 0%
    0 out of 52 items documented0 out of 13 items with examples
  • Size
  • Source code size: 46.86 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.22 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RobinSrimal

window-core

window-core is an event-driven virtualization engine for large, dynamic lists.

It exposes a reducer-style API:

use window_core::{VirtualWindow, VirtualWindowConfig, WindowEvent};

let mut window = VirtualWindow::new(VirtualWindowConfig {
    item_count: 2_000,
    estimated_item_height: 80.0,
    overscan_px: 260.0,
    overscan_items: 8,
    sticky_bottom_threshold_px: 96.0,
    trailing_shrink_limit_items: 3,
    min_stable_overscan_viewport_factor: 0.6,
});

window.update(WindowEvent::ResizeViewport { height: 640.0 });
let update = window.update(WindowEvent::Scroll { top: 3200.0 });
println!("render {}..{}", update.range.start, update.range.end);

Repository: https://github.com/RobinSrimal/dioxus-window