typescript-scroll-manager
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

TypeScript Scroll Manager

A recycling scroll manager written in TypeScript.

Originally written to manage thousands of items appearing within a <canvas> element (set to position: sticky) within a scrolling <div>.

Install

npm i typescript-scroll-manager

Overview

There are 4 parts to this library:

  • ScrollManager

    • This class manages scrolling. You can use this class as-is.
  • ScrollItem

    • This class represents an item to be scrolled. You can use this class as-is.
  • RenderProvider

    • This class manages renderable views. You should subclass this class.
  • Positionable

    • An interface that renderable items should adher to so they can update their position.

Readme

Keywords

none

Package Sidebar

Install

npm i typescript-scroll-manager

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

17.7 kB

Total Files

10

Last publish

Collaborators

  • atomoil